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

Answer Posted / manu

A small correction at **


using session oject in jsp.
first u set using following methods
String name="ravi";
session.setAttribute("user",name);

using retrive method
String sessionuser=session.getAttribute("user");**
out.println("welcome"+sessionuser);
u give this last 2 stmts in all jsp pages. it will
display as "Welcome ravi".

Is This Answer Correct ?    123 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is contextpath in jsp?

502


Why use of scripting elements in jsp is discouraged?

549


What are jsp implicit objects?

518


How is jsp better than servlet technology?

552


What is expression tag in jsp?

492






What is the need for jsp?

542


What is client side technology?

486


What is jsp standard tag library, provide some example usage?

508


What jsp lifecycle methods can I override?

583


Can we call destroy method inside init method?

488


What is welcome file list?

485


Explain handling of runtime exceptions.

654


What is jsp custom tag and what are it’s components?

531


How do I view a jsp file?

486


What class.forname will do while loading drivers?

542