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 jstl (jsp standard tag library)?

526


What are directives? What are the different types of directives available in jsp?

483


difference betwwn 16 bit and 32 bit

1710


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

527


What are the events in jsp page?

486






Why is it not recommended to use script elements in jsp?

479


What class.forname will do while loading drivers?

534


Give uses of object cloning?

547


How jsp is executed?

460


Explain pge Directives.

539


Can we call destroy method inside init method?

485


What is the jsp:setproperty action?

538


What is scripting elements in jsp?

506


Is jsp used?

484


What are the lifecycle phases of a jsp?

552