Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Formbean information lost

Chris Pratt

2006-12-25

Replies:

Try using the <html:option> tag instead of the <option> tag, that way Struts
has some control.
(*Chris*)

On 12/16/06, Thomas Thomas <debussy007@(protected):
>
> Thank u very much Miss Harper.
>
> I think it's due to this code, and I don't really know a good way to
> rectify
> this :
>
> Jour
> <html:select size="1" property="birthDay">
>   <c:forEach var="aDay" begin="1" end="31">
>      <option value="${aDay}"/>
>      <c:out value="${aDay}"/>
>   </c:forEach>
> </html:select>
>
> Mois
> <html:select size="1" property="birthMonth">
>   <c:forEach var="aMonth" begin="1" end="12">
>      <option value="${aMonth}"/>
>      <c:out value="${aMonth}"/>
>   </c:forEach>
> </html:select>
>
>
> Thank u very much for your support.
>
>
©2008 junlu.com - Jax Systems, LLC, U.S.A.