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 to maintain sessions in jsp?can you tellme the methods.

Answer Posted / godfather

String str="xxx";
session.setAttribute("xxx",str);//to set session
//so nw the session will get store by the name "xxx".

//To retrieve session

String str1=session.getAttribute("xxx");

Is This Answer Correct ?    14 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of comments used in jsp?

884


What is jsp life cycle?

980


What is a jsp expression?

989


What is context url?

892


Is jsp server side scripting language?

991


Which package does a jsp api consist of?

936


What is the jsp:setproperty action?

975


What is the difference between a scrollbar and a scrollpane in jsp?

884


How does error handling occur with jstl?

937


How to connect jsp and java file?

1009


What is jsp taglib?

897


What is jstl used for?

927


Which package does jsp api consist of?

1013


When destroy method of jsp is called?

957


What is a translation unit?

930