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 is meant by Servlet? What are the parameters of service method?

1041


What is the functionality of actionservlet and requestprocessor?

1068


What is servlet initializer?

953


How can you use a servlet to generate a plain text instead of html?

1112


How the servlet is loaded?

1061


How to rectify errors in java servlet while compilation?

935


What do you mean by annotations in servlet?

1049


When Servlet is unloaded?

1088


What is the main purpose of java servlets?

1036


Define servlet mapping?

1144


Explain mvc pattern.

991


Explain the war file?

1044


What is servlet mapping?

1002


What is the use of send redirect () method?

1066


What is difference between jsp and servlet?

1156