how to maintain sessions in jsp?can you tellme the methods.
Answer Posted / brindha.d
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(name);
out.println("welcome"+sessionuser);
u give this last 2 stmts in all jsp pages. it will
display as "Welcome ravi".
| Is This Answer Correct ? | 121 Yes | 55 No |
Post New Answer View All Answers
Give the use of session object.
How does jsp engines instantiate tag handler classes instances?
What are the scopes available in
What is the jspdestroy() method?
How do I use sendredirect?
How can you make the finally clause not to fail to execute?
Is jsp a programming language?
What jsp lifecycle methods can I override?
How does a jsp engine work?
What is difference between jsp and jstl?
What is auto-flush attribute?
What are jsp implicit objects?
What are the elements of a jsp page?
What is an implicit object?
Differentiate between