Re: Conversion problem String / float

2010-07-02 Thread Ken
It probably would have been better if you posted more of class ProductAction... I just glanced over this quickly... I don't understand how priceOption is set in ProductAction... class ProductAction does have a setter for priceOption?

Re: Conversion problem String / float

2010-07-01 Thread Stephane Cosmeur
Thanks for helping here is the strutsProduct.xml :: http://struts.apache.org/dtds/struts-2.0.dtd";> true InfoProduct ${idProduct} /pages/error/role.jsp /pages/product/infoOption.jsp

Re: Conversion problem String / float

2010-07-01 Thread Ken
Please provide a trimmed down version of the form, the action bean and the struts.xml file (if there is one) showing the issue. On Thu, 2010-07-01 at 15:04 +0800, Stephane Cosmeur wrote: > Hello struts users > > We are facing a strange problem. We submit a form with textfields which > contain s

Conversion problem String / float

2010-07-01 Thread Stephane Cosmeur
Hello struts users We are facing a strange problem. We submit a form with textfields which contain some float numbers. When the entity is loaded the numbers appears in the textfield like this : x.x But when we submit the form, it is the input result which is returned. If we change the numbers like