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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is tomcat a servlet container?

1114


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1228


What are the different methods of session management in servlets?

1078


Difference between java beans & servlets?

1109


Explain the different ways for servlet authentication?

1164


What are the common methods that are included in the http servlet class?

1086


What is the difference between the servlets and cgi programs?

1048


Servlet is pure java object or not?

1243


Explain how does JSP handle run-time exceptions?

1162


Which method is called when reference variable is passed in system.net?

2457


What are the different types of servlets?

1066


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

1163


What is the use of servletconfig interface?

1088


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

1078


Explain the working of service() method of a servlet.

1016