does not mean 0 [in my app] :)

2004-03-13 Thread Craig Tataryn
Hi there, is there a configuration setting for Struts which tells it to set a property on a form bean of type Integer (not int) to null instead of new Integer(0) when the corresponding value coming in from the user's form is an empty string? I had to create a plugin that had the following in

Re: does not mean 0 [in my app] :)

2004-03-13 Thread Hubert Rabago
That's the expected behavior. At the bottom of http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_action_form_classes: And, of course, while the DynaActionForm may support various binary types, properties used with the html:text tag should still be String properties.

Re: does not mean 0 [in my app] :)

2004-03-13 Thread Craig Tataryn
Well, it really has nothing to do with the type of tag I am using be it radio,checkbox,text; I just wanted to know if there is a declarative way to override the default values used by BeanUtils in Struts. Or is putting the code (from my previous message) in a plug-in the best practice? In my