i have a
JSP. i set an object in the page context as :
String lang = "en";
pageContext.setAttribute("lang", lang, PageContext.SESSION_SCOPE);
and later access this object. the problem is that when i access this JSP using the ip address of the server, the object is not stored in the page context. the access code throws null pointer exception. But when i access the code using the server name (localhost etc), everything works fine.
can some one please explain.