struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <laredotorn...@gmail.com>
Subject Re: Struts date tag?
Date Wed, 27 Aug 2008 20:39:23 GMT

Hi,

I am asking if there is a tag which will create separate HTML form inputs
for month, day and year.

Thanks, - Dave



Laurie Harper wrote:
> 
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Struts-date-tag--tp19171360p19189269.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message