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
What is contextpath in jsp?
Why use of scripting elements in jsp is discouraged?
What are jsp implicit objects?
How is jsp better than servlet technology?
What is expression tag in jsp?
What is the need for jsp?
What is client side technology?
What is jsp standard tag library, provide some example usage?
What jsp lifecycle methods can I override?
Can we call destroy method inside init method?
What is welcome file list?
Explain handling of runtime exceptions.
What is jsp custom tag and what are it’s components?
How do I view a jsp file?
What class.forname will do while loading drivers?