struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radoslav Krivak <>
Subject How to access variable in JSP tag scope from struts 2 tags (OGNL expression)
Date Mon, 01 Jun 2009 19:18:45 GMT


how can I access variable that is defined inside the body of third party
(not struts2) tag? Example:


      ${}  <%-- works  --%>

      <s:iterator value="user.friends" var="friend"> <%-- doesn't work  --%>
          <s:property value="" />      


I know that JSP EL is forbidden in struts2 tags. But how could I access
variable "user" in example then? I haven't found anything about it in docs.
Please help me out, I'm completely lost here.
I use latest struts 2.1.7 (built from source).

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message