how to maintain sessions in jsp?can you tellme the methods.

Answer Posted / aryan

String name="Arpit";
session.setAttribute("user",name);
String sessionuser=session.getAttribute("user");
out.println("WellGud"+sessionuser);

Is This Answer Correct ?    36 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to forward a request to another source?

524


What is the use of jstl?

480


What are the different life-cycle methods?

532


What does jstl mean?

505


Explain client and server side validation?

507






What is in jsp?

619


How does response sendredirect work?

502


What is jsp taglib?

513


What is session tracking in jsp?

495


What is scripting elements in jsp?

507


How do I use a scriptlet to initialize a newly instantiated bean?

548


What is out in jsp?

499


How can I prevent the output of my jsp or servlet pages from being cached by the browser?

564


What are scriptlets in jsp?

516


What are the standard actions available in jsp?

537