Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How variables can be accessed across the sessions?

Answers were Sorted based on User's Feedback



How variables can be accessed across the sessions?..

Answer / mohan

we have to set the variable in session object.like
session.setAttribute("somename",varible name);
and then we can get this variable where we want in this
session
session.getAttribute("somename");

Is This Answer Correct ?    2 Yes 0 No

How variables can be accessed across the sessions?..

Answer / anji

Store the variable in the session.

Is This Answer Correct ?    1 Yes 1 No

How variables can be accessed across the sessions?..

Answer / niranjanravi

through session context interface

Is This Answer Correct ?    0 Yes 1 No

Post New Answer



More Servlets Interview Questions

What’s the difference between forward() and sendredirect() methods?

0 Answers  


What are the annotations used in servlet 3?

0 Answers  


What is api in servlet?

0 Answers  


Why is http protocol called as a stateless protocol?

0 Answers  


HTTP tunneling means what?

2 Answers  






Whether we can get deadlock situation in servlets?

0 Answers  


Can servlet have a constructor ?

0 Answers  


Is that servlet is pure java object or not?

0 Answers  


How printwriter is different from servletoutputstream?

0 Answers  


What is setattribute in servlet?

0 Answers  


What is difference between get and post method?

0 Answers  


what do you understand by url rewriting?

0 Answers  






Categories