title: concatenation challenge in html and jsp scriptlets with struts
body: <pre><code>&lt;script&gt;
     var myValue = ${valueBean};
  &lt;/script&gt;
  </code></pre>
  
  <p>The value of myValue is 5</p>
  
  <p><code>&lt;input type="text" name="&lt;%=curName%&gt;'[' + myValue +'].otherList[' + myValue + '].'&lt;%=curProp%&gt;" value="&lt;%=(String) currentItr.next()%&gt;"/&gt;</code></p>
  
  <p>When i view source, the generated html keeps giving me</p>
  
  <pre><code>&lt;input type="text" name="myList'[' + myValue +'].otherList[' + myValue + '].'someProp" value="XXX"/&gt;
  </code></pre>
  
  <p>when it should be</p>
  
  <pre><code>&lt;input type="text" name="myList[5].otherList[5].someProp" value="XXX"/&gt;
  </code></pre>
  
  <p>Am i doing something different, i cannot quite see where my concatenation problem is. please help!</p>