you can get the context of another servlet in this way:Hi, I have a servlet which adds an object to an attribute in it's servlet context in Tomcat. How can I access that context from a service in the Axis Servlet? When I check the Axis servlet context attributes using:
(context is the current MessageContext) javax.servlet.ServletContext foo = ((javax.servlet.http.HttpServlet)context.getProperty(org.apache.axis.transport.http.HTTPConstants.MC_HTTP_SERVLET)).getServletContext();
the attribute that I specified in my other servlet is not listed. So I assume this is because they are seperate contexts. Is there any way I can get an attribute from one to the other?
I don't understand enough about context :\
ServletContext myServletContext = sc.getContext("http://myServletURL");
and then set/get its attributes
Dario
