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 / murali mohan rao

first set the value in session using following methods
***Don't create the unnecessary Strings***

<%session.setAttribute("user","Murali");%>

Below statement you can use in any JSP to print the
welcome message. Start using JSP tags to better performance
and better coding.

<%= "Welcome to "+session.getAttribute("user")%>

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we handle exceptions thrown by jsp service method?

860


Are dialogue tags necessary?

846


How do I use a scriptlet to initialize a newly instantiated bean?

916


Can jsp contain javascript?

916


What is error page in jsp?

868


Is jsp a front end?

936


Explain the uses of tag.

886


Why are jsp pages the preferred api for creating a web-based client program?

1010


Define jsp declaration?

937


How do I run a jsp file?

915


What language is jsp?

981


How can I prevent the output of my jsp or servlet pages from being cached by the browser?

1003


How do I open a jsp file?

1022


How jsp is compiled?

849


How do you comment out in jsp?

959