title: How to get dynamically session object in struts2
body: <p>I am trying to get dynamically session object in struts2 application.</p>
  
  <pre><code>&lt;s:if test="%{#session['resToken'].bookingType == 1}"&gt;
  </code></pre>
  
  <p>resToken can be get by <code>&lt;s:property value="%{resToken}"&gt;..</code></p>
  
  <p>But I can't write <code>&lt;s:property&gt; within &lt;s:if test=""&gt;</code></p>
  
  <p>its giving me error of double quotes..</p>
  
  <pre><code>org.apache.jasper.JasperException: /WEB-INF/jsp/booking/banquet/guest-Info-View.jsp(150,40) Unterminated &amp;lt;s:if tag 
  </code></pre>