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 can I share objects across different sessions?

Answer Posted / aman kumar

with the help of session.setAttribute()and session.getAtribute()we can share Httpsession object across different servlet and jsp.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the server information in a servlet?

1165


When jsessionid is created?

1043


Servlet is pure java object or not?

1191


What are the annotations used in servlet 3?

1031


Whether we can get deadlock situation in servlets?

1067


What is a generic servlet?

956


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

1036


What's the use of servletcontext?

1139


Explain web container.

1026


Can you call a jsp from the servlet?

1015


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

1167


Can we fetch the attributes related to a servlet on a different servlet?

1140


Explain how to improve Servlet Performance?

1138


How many servlet objects are created?

1061


Write all the phases defined in servlet life cycle?

1145