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

How does a jsp function?

505


Can you override jspinit() method? If yes, in which cases?

512


What do you know about jsp tags? Explain how you understand the action tag and jsp action elements.

580


How do I mix jsp and ssi #include?

561


How do I use comments within a jsp page?

550






What are the jsp elements?

460


What does .com stand for?

482


What is the jspdestroy() method?

566


How to disable scripting?

498


How to send data from jsp to jsp?

515


What are the implicit, internal objects and methods on the jsp page?

452


How to deactivate el on jsp?

522


How we can disable session in jsp?

518


Explain JSP directives.

593


What is the use of pagecontext in jsp?

461