Hi,

try 

formName.property

formName is the name that you defined in your struts.xml for the form
of current action. it should work. and the reason it works that Struts
puts the form object under the 'name' key in either request and
session scope depending upon the 'scope' attribute of your current
action.

Now JSTL shouldn't have a problem finding a bean in either request or
session scope as long as you know it's name.

hope this helps.

ATTA


On 5/25/05, Yaroslav Novytskyy <[EMAIL PROTECTED]> wrote:
> Hello!
> 
> How can I get a form's property in JSP to use it in EL in JSTL tags.
> 
> e.g.
> <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>
> 
> 
> Yaroslav Novytskyy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to