There is a separate Jakarta project called 'Taglibs' which may be of interest for what you are facing. Taglibs is a set of reusable tags. There is a DateTime tag library which looks like it would take away most of the pain in Date conversion . Your form classes could then be written to deal with Date objects and the date tags take care of the conversion. I believe Taglibs is connected to a JSR asking for a standard jsp tag library, so there's a good chance the tags will be supported and stay around.
Hope it is of some help - Paul ----- Original Message ----- From: "Yee Keat" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 8:21 PM Subject: Re: Forms and Dates > I have encountered this problem also, not with dates but with Integer and > other stuffs, the only way I know how to fix the problem is to change > everyhing to string, or at least change the getter and setter to work with > string. > > On Monday 19 November 2001 11:35 pm, you wrote: > > I want to create a form with an option field which contains dates (i.e. > > java.util.Date). > > If I use an <html:options> tag and feed it with a collection containing > > Dates, what I get in my ActionForm it's always Strings. > > Which is the best way to pass Dates to the server through a form? > > Thanks for you help! > > -- > Cheers, > > Yee Keat > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

