How to get dynamically session object in struts2

Posted by Sujeet Singh on Stack Overflow See other posts from Stack Overflow or by Sujeet Singh
Published on 2010-12-29T13:11:52Z Indexed on 2010/12/31 4:54 UTC
Read the original article Hit count: 247

Filed under:
|
|
|

I am trying to get dynamically session object in struts2 application.

<s:if test="%{#session['resToken'].bookingType == 1}">

resToken can be get by <s:property value="%{resToken}">..

But I can't write <s:property> within <s:if test="">

its giving me error of double quotes..

org.apache.jasper.JasperException: /WEB-INF/jsp/booking/banquet/guest-Info-View.jsp(150,40) Unterminated &lt;s:if tag 

© Stack Overflow or respective owner

Related posts about java

Related posts about session