On 11/21/05, Fulgencio Comendeiro, Eduardo <[EMAIL PROTECTED]> wrote: > <% > { > java.util.ArrayList list = new java.util.ArrayList(); > list.add("textouno.texto1"); > list.add("textouno.texto2"); > list.add("textouno.texto3"); > list.add("textouno.texto4"); > pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE); > } > %> <snip/>
Artificial scope might be unnecessary. > <jsp:useBean id="list" scope="page" class="java.util.ArrayList" /> <snap/> jsp:useBean is moot, given the scriptlet. > contenido. > <logic:iterate id="item" name="list" > > <input type="hidden" id='<bean:write name="item"/>' > value="<bean:message key='<bean:write name="item"/>'/>" > > </logic:iterate> > > The result must be : <input ...... value="<bean:message > key='textouno.texto1' />" > > > <snip/> JSTL? Along the lines of (JSP 2.0 variant) ... <c:forEach var="item" items="${list}"> <input type="hidden" name="${item}" value="<bean:message key='${item}'/>" > </c:forEach> -Rahul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]