Here is my Spring MVC Controller code:
session.setAttribute("YourProperty", "arg1");
How can I access an attribute stored in my HttpSession using JavaScript?
I have tried using this code:
var property = <%=session.getAttribute("YourProperty")%>;
alert(property);
But it returns null.
Thanks