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
why we should override only no-agrs init() method.
What exactly is a servlet?
What are the key methods that are involved in processing of http servlets?
Why jsp is better than servlet?
Write all the phases defined in servlet life cycle?
What is servlet container. how it works?
What are the ways to handle multi-threading in servlets?
What is meant by a servlet?
How a servlet is unloaded?
Why don't we write a constructor in a servlet?
How many servlet objects are created?
What are advantages of servlets over cgi?
What are the jobs performed by servlets?
What are different Authentication options available in Servlets.
Tell the new features added in servletrequest interface i.e. Servlet 2.4