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.
I've searched a lot about these features, I'd like to have code like:
var a = <%=data %>
How could I control the script(since it's .js), and index.jsp ?
Thanks