title: How to embed JSP in javascript?
body: <p>I'm working on the project that requires reading database in JSP, but the data is used by javascript to render the google map(the map points). I don't know how to access the NoSQL database by javascript, so I'm thinking about embed JSP in javascript to access the data and as a way to feed them to javascript.</p>
  
  <p>I've searched a lot about these features, I'd like to have code like:</p>
  
  <pre><code>var a = &lt;%=data %&gt;
  </code></pre>
  
  <p>How could I control the script(since it's .js), and index.jsp ?</p>
  
  <p>Thanks</p>