ServletContext How to define it

Discussions

Web tier: servlets, JSP, Web frameworks: ServletContext How to define it

  1. Hi,
       In a web application how to define a servletcontext?
    If a webserver contains more than one web application, is it
    possible to interchange the attributes stored in the servlet contexts?
    Thanks in advance
    Bye
    Rama
  2. If you in Servlet program ,you can like this:
    invoke "getServletContext() " method
  3. If you in Servlet program ,you can like this:
    invoke "getServletContext() " method
  4. ServletContext How to define it[ Go to top ]

    Rama,

    take a look at the Servlets Spec 2.3 from Sun. you will find all the info that you need. I don't think that you can share the ServletContext between apps under the same Web Server.

    Nicky