*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "startDate endDate Form prefill" Watch "startDate endDate Form prefill" New topic
Author

startDate endDate Form prefill

mark ferguson
Greenhorn

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
Hi,

Below is a good example to do it.

http://struts.apache.org/faqs/newbie.html#prepopulate


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

Joined: Nov 25, 2004
Posts: 2
Thanks a load
Just used this example and works a treat.
cheers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: startDate endDate Form prefill
 
Similar Threads
inserting values in database after calculation
calcuate days in a calender.era or between two days
A little issue with <c:set ...>
JAVA...using a SQL Statement
Converting Java Dates and Database Dates