Hello,

I have a question about the Date objects and struts :
My users want to have a form for selecting a date with one selector for the date, one for the month, and one for the year. I want to know if there is existing facilities for doing this in struts.
Actually i have attempted to use the (deprecated) methods getDate,getMonth and getYear of java.util.Date but it seems that there is a little verbose (see above). Is there a better solution ?


--
Ludovic Ma�tre

Factory Productions                 | T�l: (33) 04 93 07 08 00
149, avenue des mimosas             | Fax: (33) 04 93 07 04 02
06700 Saint-Laurent-du-Var (France) | Web: http://www.factory.fr


PS : the script code for the form i want to have is : in page one : <nested:nest property="dateBirthday"> <jsp:directive.include file="/nests/DateNest.jsp"/> </nested:nest>


in DateNest.jsp : <td nowrap="true"> <nested:select property="date"> <html:option value="0">--</html:option> <c:forEach var="i" begin="1" end="31"> <html-el:option value="${i}"><c:out value="${i}"/></html-el:option> </c:forEach> </nested:select> <nested:select property="month"> <html:option value="0">--</html:option> <c:forEach var="i" begin="1" end="12"> <html-el:option value="${i}"><c:out value="${i}"/></html-el:option> </c:forEach> </nested:select> <nested:select property="year"> <html:option value="0">----</html:option> <c:forEach var="i" begin="1980" end="2020"> <html-el:option value="${i}"><c:out value="${i}"/></html-el:option> </c:forEach> </nested:select> </td>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to