Hi, The first statement was: I need to have a startDate and endDate field in my form, and I'd like to prepopulate the endDate field with today's date.
Easy to understand. The second statement was: There's a bean that has set/getEndDate() methods, and I get to the form from an Action.perform() call This is ambiguous. Is the bean that has set/getEndDate methods the form bean? If so, you just need to instantiate a copy of your form bean within your action, convert today's date to a string, store it in the form bean using setEndDate, and store the form bean in the request or session, depending on how you set up your mapping in struts-config.xml. Note that the name you need to store the form bean under is the name you used when setting it up in struts-config.xml. I hope this helps, if not please repost with more details. -- Larry Maturo -----Original Message----- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:28 AM To: 'Struts Users Mailing List' Subject: RE: Pre Populating Fields - bit of a newbie question Anyone? Pre populating fields? John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -----Original Message----- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:19 AM To: 'Struts Users Mailing List' Subject: Pre Populating Fields - bit of a newbie question Hi I need to have a startDate and endDate field in my form, and I'd like to prepopulate the endDate field with today's date. There's a bean that has set/getEndDate() methods, and I get to the form from an Action.perform() call What's the best way to prepopulate that field? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

