How to get one Servlet's Context Information in another Servlet?

Access or load the Servlet from the Servlet Context and access the Context Information

Showing Answers 1 - 5 of 5 Answers

veeru

  • Sep 8th, 2005
 

ServletContext context = getServletContext(); 
// set the Sttribute for this context 
context.setAttribute("name","veeru"); 
//get the context in another servlet/resorce by 
context.getAttibute("name");

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions