title: Struts tag "if test" in jsp
body: <p>I am writing a condition in the jsp file based on which a image is displayed. Its something like this.</p>
  
  <pre><code>&lt;s:if test='#session.member.memberisadmin == "Y" 
    &amp;&amp; #session.member.hasPermission("Update access to white list terms")   =="true" '&gt;
  
  &lt;a href="&lt;gs:url action="listLabs" namespace="/labs"/&gt;"&gt;&lt;img src="&lt;gs:url  
  value="/images/labs/labs-48px.png"/&gt;" alt="General Sentiment Labs"  style="margin-
  bottom:5px;" /&gt;&lt;/a&gt;
  
  &lt;/s:if&gt;
  </code></pre>
  
  <p>The problem is with the second condition session.member.haspermission, because when am using ||(or) instead of &amp;&amp;(and)  its working fine. Please suggest me a solution for this.</p>