Hello,
try to add following parameter for "action" servlet (web.xml file):
-------------------------------------------------------------------
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
....
<!-- the numeric Java wrapper class types (like java.lang.Integer)
will default to null (rather than 0) -->
<init-param>
<param-name>convertNull</param-name>
<param-value>true</param-value>
</init-param>
....
</servlet>
-------------------------------------------------------------------
Dima.
Sunday, October 10, 2004, 11:06:55 PM, you wrote:
RR> Sorry for being lazy here and not checking into this myself, but can
RR> anyone confirm if the latest behavior of the beanutils converters is to
RR> still convert empty or null Strings to 0 (vs null) for the wrapper
RR> number types (Integer, Double, etc)?
RR> Also, going the other direction - from say Integer to type String - will
RR> it take null Integers and make them Strings of "0" ?
RR> I'm about to create my custom converter to handle these scenarios (since
RR> I want nulls for my String not 0 for the wrapper classes) but don't want
RR> to bother with creating these custom converters if there is a better way
RR> to handle the situation.
RR> Thanks,
--
Best regards,
Dmitrii mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]