Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

startDate endDate Form prefill

 
mark ferguson
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Below is a good example to do it.

http://struts.apache.org/faqs/newbie.html#prepopulate
 
mark ferguson
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a load
Just used this example and works a treat.
cheers
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic