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 / vemula bojjanna

by using setAttribute()and getAttribute()
for example list is one variable in one servlet like
List l=new list();
l.add("bujji");
l.add("vemula");
u set this value from this servlet by using
req.setAtribute("list",l);
by using getAtribute() u can use the list value of first
servlet into second servlet like
req.getAtribut(list);

Is This Answer Correct ?    3 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by url pattern in servlet?

1159


What is the difference between 2 types of servlets?

1194


Who is responsible for writing a constructor?

1310


What is session?

1125


What are Servlets?

1182


What is dispatcher servlet?

1108


What are the new features added to servlet 2.5?

1153


Explain servlet events?

1065


What is servlet in simple terms?

1074


Why do we need servlet filter?

1108


How a servlet is unloaded?

1135


Explain in brief the directory structure of a web application?

1155


What is a servlet context object?

1191


How to find whether a parameter exists in the request object?

1162


What are the mechanisms used by a servlet container for maintaining session information?

1083