Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is meant by a web application

976


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

996


Which httpsession object is used to view and manipulate information about a session?

1120


What is servlet container?

1077


Explain mvc pattern.

974


What are the two important api's in for servlets?

1022


When to use doget() and when dopost()?

1053


Explain jsessionid and when is it created?

1055


What is difference between get and post method?

1016


What if you need to span your transaction across multiple servlet invocations?

1045


How to rectify errors in java servlet while compilation?

906


Who is responsible for writing a constructor?

1211


What is load-on-startup in servlet?

1083


What are the advantages of Servlet over CGI?

1095


How will two or three servlets interact or communicate with each other?

1409