From: "Yaroslav Novytskyy" <[EMAIL PROTECTED]> > > How can I get a form's property in JSP to use it in EL in JSTL tags.
> <html:form action="/myAction"> > <html:hidden property="elementIndex"/> > </html:form> > > <c:set var="elementIndex" value="??????????????"/> <- define here > > <c:if test="${!empty myBean.list[elementIndex]}"> <- use here > <somethig> > </c:if> If you're going to use JSTL, you'll probably want to switch to the Struts-EL tags so you can use expressions with them as well. The form is a bean, so you can just use the name you configured in struts-config.xml. <c:out value="${someForm.elementIndex}"/> You don't really need the <c:set> in your example above, just use the form element directly: <c:if test="${!empty myBean.list[someForm.elementIndex]}"> but it will work either way. If you're using a dynamic form, you'll need to go through the map to get at the properties. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]