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
What are the kinds of http requests?
Why are http servlets used in programming?
Who is responsible to create the object of servlet?
What are the various ways of session supervision in servlets?
what do you understand by url rewriting?
What is the life cycle of a servlet?
What do you mean by annotations in servlet?
Explain url encoding in servlet?
When servlet object is created?
Explain the methods of request dispatcher in servlet?
How the typical servlet code look like ?
How do you communicate in between Applets and Servlets?
What is a cookie What is the difference between session and cookie
Explain jsessionid and when is it created?
What are the different methods of session management in servlets?