I find it's better to use Strings for ActionForm attributes, which can then be validated, and copied to correctly typed attributes in DTO beans once validation has passed. This would allow you to hold your null value, as this would be an empty string.
-----Original Message----- From: Isaac Mosquera [mailto:[EMAIL PROTECTED] Sent: 20 July 2004 15:51 To: Struts Users Mailing List Subject: form display In my form i have an integer, which cannot be initialized to null, however, it shows up in the html:text box as a "0", and i would prefer that it shows up blank when a user FIRST reaches the page. After that, i would like the variable to retain the value which the user has entered. -isaac --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------------------------------------------------------------------------ For more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. ------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]