Prepare for your Next Interview
This is a discussion on Servlet's Context Information within the JSP forums, part of the Web Development category; How can I get one Servlet's Context Information in another Servlet?...
|
|||
|
Re: Servlet's Context Information
We can Servlet context information using the ServletContext object . i am writing the code pls go through this.
First SERVLET: ServletContext sc=getServletContext(); sc.setAttribuer("name","value");//the value may also be an object Second Servlet: ServletContext sc=getServletContext(); sc.getAttribute(name); //this will returns the value. I think this is fine and any problem send message . |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Information regarding ISTQB | p_shilpa | Testing Issues | 12 | 4 Weeks Ago 07:58 AM |
| BEst method to pass information | pjitu1969 | ASP.NET | 2 | 05-02-2007 10:44 AM |
| requires information abt sun certification | snehal_thakre | Certification | 1 | 09-24-2006 05:16 AM |
| Information about Files | scott | Unix/Linux | 1 | 09-24-2006 04:57 AM |
| Information Security IT Certification | Lokesh M | Certification | 0 | 06-22-2006 03:49 AM |