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 do you mean by web applications?
Define the lifecycle for executing a jsp page.
Explain their methods? Tell me their parameter names also have you used threads in servlet?
What is the web server used for running the Servlets?
What's the difference between authentication and authorization?
Explain the concept of ssi ?
What is servlet attributes and their scope?
Write a command to get actual path of a servlet to the server?
Can we override destroy method in servlet?
What do you mean by session tracking?
What is a servlet?
Explain the role of dispatcherservlet and contextloaderlistener.
What are the jobs performed by servlets?
What is dispatcher servlet?
How can you run a servlet program?