Web tier: servlets, JSP, Web frameworks: application scope object from JSP in Servlet
I have an object in JSP with application scope. Within my servlet, I can get the object. But it is null. I get the object in the servlet using ServletContext. (I know the object is there, because I can print it's name using getAttributeNames method of the ServletContext). The object in JSP is declared as a standard jspBean tag.
- Posted by: Vipul Sagare
- Posted on: March 04 2001 17:35 EST
Have you got the object from ServletContext using getAttribute() and cheked for null?? is it showing null!!! Then it means you javabean is not initialized. Just chk out that.