How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?
Answer Posted / mohit rana
It's simple just use session (session object).
HttpSession session = request.getSession();
session.setAttribute(String obj);
and get the above value on other container
session.getAttribute(String obj);
Is This Answer Correct ? | 16 Yes | 5 No |
Post New Answer View All Answers
Explain the difference between jsp and servlet?
Explain the working of service() method of a servlet.
What is the dispatcher servlet?
What do you mean by cgi in servlet?
What is the disadvantage of cookies?
What are the phases of the servlet life cycle?
How do cookies work in servlets?
What is the use of httpservletresponsewrapper?
What is difference between jsp and servlet?
Which are the different ways you can communicate between servlets?
How we can create war file in servlet?
How to find whether a parameter exists in the request object?
What is the major difference between servlet and applet?
What is the difference between servlet and jsp?
What is cgi?