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

What methods do you use in servlet - applet communication?

985


What are the supporting protocol by HttpServlet ?

1116


Can we override servlet service method?

1052


How can you run a servlet program?

1035


How to handle exceptions thrown by application with another servlet?

1038


Explain web container.

978


What is Servlet API used for connecting database?

1049


What are the types of Session Tracking ?

1089


How can we invoke another servlet in a different application?

1149


What is the use of java servlet api?

978


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

961


Is servlet a controller?

963


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

992


Which HTTP method is non-idempotent?

1068


What is the use of attribute in servlets?

1004