May be you can use the jakarta datetime taglib with some thign like this. <dt:format pattern="MM/dd/yyyy hh:mm"><dt:currentTime/></dt:format>
<select name="month"> <dt:months id="mon"> <option value="<jsp:getProperty name="mon" property="monthOfYear"/>"> <jsp:getProperty name="mon" property="month"/> </dt:months> </select> Refer to http://jakarta.apache.org/taglibs/doc/datetime-doc/datetime-1.0-B1/index.htm l for more examples. Regards ----- Original Message ----- From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 12:56 PM Subject: RE: Pre Populating Fields - bit of a newbie question > Use JavaScript. What's the point of having the overhead of creating an > object for something as simple as getting the current date? > > Mark > > -----Original Message----- > From: Mattos, John [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 05, 2002 12:28 PM > > Anyone? > > Pre populating fields? > > 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]>

