I have a servlet that forwards to a HTML page, using redirect. Because I am using ajax and php on the html page to do other functions. Can turn into a jsp. Is there a way I
Below code may help you to achieve session attribution inside java script:
var name = '<%= session.getAttribute("username") %>';