From: "Wendy Smoak" <[EMAIL PROTECTED]> > From: "aris" <[EMAIL PROTECTED]> > > When I submit the form, after the validation process I have value="0" (the > > field is an Integer) but I haven't set validation rules on this field :| > > Use String (and occasionally Boolean) for form fields and things will work > the way you need them to.
I don't understand your answer... If I need an Integer field for my ActionForm derived class why I've to use a String? > > In my opinion the validator plugin uses a default value read somewhere to > > fill the value of the hidden field (but I didn't set anything !?!) > > More likely you're seeing the result of the conversion from String to > Integer when Struts populates your ActionForm from the request. The best > way to see what's actually happening is to run the whole thing in a > debugger-- an hour with JSwat will teach you more than an entire day > studying the documentation. I use the debugger for my Java code but before to debug Struts Java code I think it's a best practice to read the documentation or post a question on the ml... don't you? Bye, aris. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]