
Suppose in a servlet a variable userName is kept in session. How can I access this variable from JSP through AJAX? Is it possible?

Please visit the following link:
http://www.roseindia.net/jsp/popup-window-using-ajax-in-jsp.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.