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

why we should override only no-agrs init() method.

1130


What exactly is a servlet?

1003


What are the key methods that are involved in processing of http servlets?

1101


Why jsp is better than servlet?

1024


Write all the phases defined in servlet life cycle?

1143


What is servlet container. how it works?

1134


What are the ways to handle multi-threading in servlets?

1077


What is meant by a servlet?

1098


How a servlet is unloaded?

1085


Why don't we write a constructor in a servlet?

1043


How many servlet objects are created?

1060


What are advantages of servlets over cgi?

1103


What are the jobs performed by servlets?

1072


What are different Authentication options available in Servlets.

1061


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1167