title: Evaluating Struts2 Function using IF TAG
body: <p>I need to use Struts2 <code>&lt;s:if&gt;</code> Tag to evaluate a function return value from different JSP pages.</p>
  
  <p>The function is implemented inside a Class, and I want to use it in different JSP pages</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;s:if test="%isLogin()==true"&gt;dosomething&lt;/s:if&gt;
  </code></pre>