laredotornado wrote:
Hi,

Using pre-Struts 2, is there a tag that will create a date (month, day, and
year)?  What would I need to do in the ActionForm?  In other words, it seems

I'm not sure I understand; are you asking if there is a tag which will create separate HTML form inputs for month, day and year? Or just whether there is a tag which will allow editing of an action form property of type Date?

like the ActionForm can only deal with String and boolean member fields.

For Struts 1, the ActionForm fields should generally be just boolean, String or collections (arrays/lists) of same, so that erroneous user input can be preserved and re-displayed for correction. It's up to you to handle type conversion from bool/string in the ActionForm to whatever your model or business objects expect. You *can* use other data types, but that generally leads to more problems than it solves.

L.


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

Reply via email to