Accessing JSON string created in jsp from javascript
in jsp scriptlet I assign a value to string variable that matches json
syntax.
<%
String jsonString = "{jsonsyntax}";
%>
In javscript I access it like:
var json= <%=jsonString %>;
The problem with this, when, in browser I use "view page source" I see the
content of variable. how can I avoid it?
No comments:
Post a Comment