title: struts 1.0 logic tag choice - if/else logic
body: <p>What I have is a dropdown list. When the user selects a certain option, where each option represents a specific String on the Java server side.</p>
  
  <p>Right now, the Java server side able to check which option is selected, and the number to correspond. At the moment, I am able to output the value in Java backend, not on the JSP page.</p>
  
  <p>Is there an if/else tag for Struts 1.0? </p>
  
  <p>I am not sure which logic tag is the best to pass a Java value for frontend processing:</p>
  
  <p><strong>JSP page</strong></p>
  
  <pre><code>if(value = 666)
     this textbox is readonly
  else
    this textbox row is active
  </code></pre>
  
  <p>My research so far:</p>
  
  <p>Looking at <code>logic:equal</code>, it seems to pass a value on the JSP page using taglibs like below. This doesn't work for me, because I want to pass the value <em>FROM</em> a Java class on the server side.</p>
  
  <pre><code>&lt;logic:equal name="name" property="name" value="&lt;%= theNumber %&gt;" &gt;
  </code></pre>