http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html has an
example on how to access the ValueStack from JSP. I am not able to get the
tag/tld working in this example. 
 
<s:set name="a" value="{ 1, 2, 3, 4 }" scope="request"/>                        
    
1. a[0] = <s:property value="${x:vs('a[0]')}"/><br>
2. a[0] = <c:out value="${(a[0])}"/><br>
3. a[0] = ${x:vs('a[0]')}<br>
4. Top of ValueStack: ${x:top()}<br>
5. <%=Functions.getTopOfValueStack() %>          

Output:
1. a[0] = 
2. a[0] = 1
3. a[0] = ${x:vs('a[0]')}
4. Top of ValueStack: ${x:top()}
5. com.abc.xyz.example.exampleact...@197cf78 

How does ${x:vs('a[0]')} work?

-- 
View this message in context: 
http://www.nabble.com/Access-to-ValueStack-from-JSPs-tp23490987p23490987.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to