Archana . wrote the following on 7/13/2005 2:24 PM:

 I have a html:text field on my form whose corresponding bean property is
an integer(text field represents year). The default value is 0. I want
the text field to display blank when the value is 0, and display the
value otherswise. Would anyone know how this can be done?

You ActionForm properties should always be Strings. Make it a String and you are all set.

If 0 comes back from the DB and you populate the form for say an edit, it will show 0, but if that's not what you want then you'll need some slignly logic in your ActionForm or in the Action that populates the Form - I'd do the later.



--
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to