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 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

Can we define constructor in Servlet class?

10 Answers   Accenture, Yugma,


How do you get the ip address of the client in servlet?

0 Answers  


Why doesn’t a servlet include main()?

0 Answers  


Write a command to get actual path of a servlet to the server?

0 Answers  


Why HttpServlet class is declared abstract?

0 Answers  


How long do servlets last?

1 Answers  


What is cookies in servlet with example?

0 Answers  


How can the session in servlet can be destroyed?

0 Answers  


Why is httpservlet declared abstract?

0 Answers  


what is the difference between doGet() and doPost()?

6 Answers   TCS,


how this statement works..? public void service(HttpServletRequest request,HttpServletResponse response)

2 Answers   TCS,


how do you maintain sessions in servlets?

5 Answers   AZTEC, L Cube,


Categories