Discussions

Web tier: servlets, JSP, Web frameworks: application scope object from JSP in Servlet

  1. application scope object from JSP in Servlet (1 messages)

    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.

    Help appreciated.
  2. Hi

    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.

    regards
    Moorthi