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

Explain Action Servlet?

1148


Describe the phases of servlet lifecycle?

1126


What is the purpose of dispatcherservlet properties?

1193


Define declaration.

1121


how many jsp scripting elements are there and what are those?

1064


Explain the servlet filter.

1041


What's the architecture of a servlet package?

1096


Is dispatcher servlet a singleton?

1070


Is that servlet is pure java object or not?

1171


Define context initialization parameters.

1091


Explain session tracking and its importance?

1054


Tell us something about servletcontext interface.

1143


What is a servlet context object?

1191


What do you mean by session tracking?

1273


What is the difference between servlet and filter?

1002