On 02/06/2003 16:38 Aaron Longwell wrote:
Could someone with experiece in this area give me a brief explanation of
the recommended workflow for editing dates?
Don't about recommended but...
For the first Struts app using 1.0.2 I wrote, I allowed dates to be input
into a text box and used java.t
You could probably lose the timezone stuff too then - just concentrate on
the DateFormat
-Original Message-
From: Aaron Longwell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 00:21
To: Struts Users Mailing List
Subject: Re: Newbie Best Practices for ActionForms
Thanks for the
low and return null
}
if(originalZone != null) format.setTimeZone(originalZone);
return result;
}
-Original Message-
From: Aaron Longwell [mailto:[EMAIL PROTECTED]
Sent: Monday, 2 June 2003 23:57
To: Struts Users Mailing List
Subject: Re: Newbie Best Practices for ActionFor
eZone(originalZone);
return result;
}
-Original Message-
From: Aaron Longwell [mailto:[EMAIL PROTECTED]
Sent: Monday, 2 June 2003 23:57
To: Struts Users Mailing List
Subject: Re: Newbie Best Practices for ActionForms
Thanks,
I am planning to use the struts validator if I'
Thanks,
I am planning to use the struts validator if I'm hearing you
right... this is the process?
In ActionForm:
String StartDate;
String End Date;
In Struts Validator:
validate the strings against a RegEx datetime mask
In Action:
1) Convert my Event ValueObject (VO)'s date values to string
> 1) What is the best practice for the properties in an
> ActionForm bean?
> Because HTTP sends everything from forms as strings, do I make all
> properties Strings, then convert them in the Action (after
> validating of course)?
Yes. The documentation suggests that all form properties be Str
1.) Yes (I even do this for true/false checkboxes!)
2.) See #1.
For my dates Im using several fields (d,m,y etc...) and some javascript to
extract/concatenate into a hidden field in the format -MM-dd HH:mm:ss ,
but its pretty ugly and I dont like it much (luckily only have one place I
need to
1) Having it that way is definetly the easiest/safest route to go.
Check out BeanUtils (jakarta commons) for BeanUtils and PropertyUtils. They
will help do the conversion to the types you need for you.
2) Same as above. There are alot of other date practices that work. Check
the archives to see som
8 matches
Mail list logo