title: how to use c:when condition inside value attribute of input tag?
body: <p>how to use c:when condition inside value attribute of input tag?</p>
  
  <pre><code>&lt;input id="textid" type="button" value=""&gt;
  </code></pre>
  
  <p>in the 'value'. what I want is </p>
  
  <pre><code>&lt;c:when test="${texttest == 'Y'}"&gt; Add &lt;/c:when&gt;
  &lt;c:otherwise&gt; Edit &lt;/c:otherwise&gt;
  </code></pre>
  
  <p>Value should be 'Add' if textest is 'Y' otherwise 'Edit'</p>