You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Mattos, John" <jm...@Indemand.com> on 2002/03/05 15:20:23 UTC

Date Form Fields Question

Hi all

I have a form that contains a StartDate and EndDate text fields, and I'm
wondering what the best way to deal with them is.

Should the Form Bean attribute be of type Date, or should I make it a
String, and just use DateFormat.parse(StartDate); to parse it in the
validate method?

Thoughts? Best practices?

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Date Form Fields Question

Posted by keithBacon <ke...@yahoo.com>.
lots in the archive about this! 
http://www.mail-archive.com/struts-user%40jakarta.apache.org/

--- "Mattos, John" <jm...@Indemand.com> wrote:
> Hi all
> 
> I have a form that contains a StartDate and EndDate text fields, and I'm
> wondering what the best way to deal with them is.
> 
> Should the Form Bean attribute be of type Date, or should I make it a
> String, and just use DateFormat.parse(StartDate); to parse it in the
> validate method?
> 
> Thoughts? Best practices?
> 
> John Mattos
> Sr. Developer and Architect
> iNDEMAND
> 345 Hudson St. 16th Floor
> New York, New York
> 10014
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>