title: setting a javascript variable to a struts property map value
body: <p>basically I want to do the following.</p>
  
  <pre><code>var myvar = '&lt;s:property value="myMap['mapKey'].mapObjectValue" /&gt;'
  </code></pre>
  
  <p>but that fails.  I've tried several variations of quotes and can't quite get it to work correctly.  any ideas?</p>
  
  <p>I can do this:</p>
  
  <pre><code>var myVar = &lt;s:property value="myMap['mapKey'].mapObjectValue" /&gt;;
  </code></pre>
  
  <p>but then the javascript variable isn't a string, so I can't use it as needed.</p>