Re: Populate Collection values

2006-03-27 Thread Thomas Otto
Hello Vijay, an add convertNull with true to the web.xml solves the problem. Thank you, Tom vijay venkataraman schrieb: In case you missed to see this in the docs... See the Struts doc: Building View Components and See in Struts Validator. Note: If your required form property is one of the J

Re: Populate Collection values

2006-03-27 Thread vijay venkataraman
In case you missed to see this in the docs... See the Struts doc: Building View Components and See in Struts Validator. Note: If your required form property is one of the Java object representations of primitive types (ie. java.lang.Integer), you must set the ActionServlet's *convertNull* init

Re: Populate Collection values

2006-03-27 Thread Angelo zerr
Hello homas, To avoid this problem, I use String type in my getter/setter in my Struts form for any type (Integer, Date,...). So, you could do that : public class User { String age; public String getAge(){ return age; } public void setAge(String age){ this.age=age; } } Af

Populate Collection values

2006-03-27 Thread Thomas Otto
Hello, I have the following problem. I have an struts form with an Collection getter and want to let set struts the input values of an submit. public class UserForm extends ActionForm { // returns a collection of user beans Collection getUsers(){ ... } } public class User { Integer age