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 ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is iselignored in jsp?

968


How do I run a jsp file in linux?

974


Why jsp and servlets are used?

941


What is jsp-config in deployment descriptor?

1012


Can a constructor be used in place of init() method to initialize a servlet?

946


What is the difference between a jspwriter and a servlet printwriter?

943


How can you make the finally clause not to fail to execute?

926


What is meant by session management?

899


What is application in jsp?

867


Mention the jstl core tags.

887


What are the benefits of pagecontext implicit object?

1224


When destroy method of jsp is called?

942


What is jsp taglib?

889


How can I override the jspdestroy() method within a jsp page?

924


Which tag should be used to pass information from jsp to include jsp?

909