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 are the advantages of jstl?

479


Explain pge Directives.

536


What are context initialization parameters?

559


Can I use javascript on jsp page?

501


Give an example where you need jsp custom tag?

512






What is session scope?

503


Can we override jsp service method?

474


What is jsp and its uses?

520


What is Include directive?

545


How do you connect to the database from jsp?

543


Define Expression

561


How to forward a request to another source?

522


What is the standard action?

592


How can I override the jspinit() and jspdestroy() methods within a jsp page?

532


Why do we need servlets and jsp?

478