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

My declarring <%@ page session="true"%>
and setting one variable in request object

like.
<% String name="milu";%>
<% session.setAttribute("name",name);%>

getting this : <%=(String)session.getAttribute("name")%>

Is This Answer Correct ?    61 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference in using request.getrequestdispatcher() and context.getrequestdispatcher()?

986


Can we use javascript in jsp?

887


What language is jsp?

964


What is jsp scriptlet?

892


Explain the jsp life cycle?

895


Differentiate between pagecontext.include and jsp:include?

893


Can you make use of a servletoutputstream object from within a jsp page?

927


What is a output comment?

913


What is expression tag in jsp?

842


What is full api?

881


what is the difference between jsp and servlets ?

930


How does el search for an attribute?

856


What are the events in jsp page?

877


Explain what is jsp ?

918


What is session scope?

887