jQuery in Action, 3rd edition
The moose likes Struts and the fly likes startDate endDate Form prefill Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "startDate endDate Form prefill" Watch "startDate endDate Form prefill" New topic

startDate endDate Form prefill

mark ferguson

Joined: Nov 25, 2004
Posts: 2
Dear one and all. I'm a bit of a newbie at this game, and was wondering if there is an easy way to prefill 2 form fields i.e. startdate and enddate (e.g. for a message) in either a actionform or dynaActionForm with todays date and todays date + 14(days) respectively. I know in the struts conf file it is possible to set static initial values for DynaActionForms - but not dynamic ones right? thus I'm assuming I've got to use a manual actin form some how and initialise it before I send it to the jsp? thanks and cheers in advance!
M Murthy
Ranch Hand

Joined: Nov 20, 2004
Posts: 33

Below is a good example to do it.


Sindhu Murthy<br />SCJP 1.4<br />SCBCD
mark ferguson

Joined: Nov 25, 2004
Posts: 2
Thanks a load
Just used this example and works a treat.
I agree. Here's the link: http://aspose.com/file-tools
subject: startDate endDate Form prefill
It's not a secret anymore!