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

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

873


What is the page directive is used to prevent a jsp page from automatically creating a session?

911


Why is _jspservice() method starting with an '_' while other life cycle methods do not?

911


Mention the advantages of jsp over pure servlets?

875


How can we stop errors on display in a jsp page?

858


What are the steps for creating custom tags in jsp?

828


What is the standard action?

976


What are the standard actions available in jsp?

934


What is a tag file in jsp?

870


Explain client and server side validation?

857


Explain some jsp life-cycle methods that can be overridden.

823


What is the scope of response object?

1057


How to send data from jsp to jsp?

871


Is there a way to reference the "this" variable within a jsp page?

978


What is a expression?

882