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 / manu

A small correction at **


using session oject in jsp.
first u set using following methods
String name="ravi";
session.setAttribute("user",name);

using retrive method
String sessionuser=session.getAttribute("user");**
out.println("welcome"+sessionuser);
u give this last 2 stmts in all jsp pages. it will
display as "Welcome ravi".

Is This Answer Correct ?    123 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of using getProperty action, as compared to the accessor method?

3287


What are custom tags?

882


What is asp and jsp?

957


What do you mean by jstl?

997


Which jsp methods can be overridden?

984


What are the three tags used in jsp bean development?

941


Mention the scope values for tag.

979


What are the lifecycle phases of a jsp?

1066


What does it mean when tags or attributes are said to be deprecated?

1001


Can I declare a java class in jsp?

1059


Is jsp technology extensible?

1141


What is request scope in jsp?

1033


Explain what is jsp ?

1022


How can I set a cookie and delete a cookie from within a jsp page?

1090


What is a page directive?

966