title: How to pass Struts2 property tag as parameter in java function in the jsp?
body: <p>I am having a problem in passing Struts2 property tag as parameter in java function in the jsp.
  I am calling a java function like this from jsp,</p>
  
  <pre><code>&lt;s:if test="%{DoSomething()}"&gt;
  </code></pre>
  
  <p><code>DoSomething()</code> function is in the Action class, and is being called for each record in the iterator.</p>
  
  <p>The problem is that I want to pass this property <code>&lt;s:property value="userId"/&gt;</code> in the function <code>DoSomething</code> as java string as follow.</p>
  
  <pre><code>&lt;s:if test="%{DoSomething("&lt;s:property value="userId"&gt;/)}"&gt;
  </code></pre>
  
  <p>Can anyone please guide me that how can I do that. I goggled it but did not find anything.</p>