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
How can we handle exceptions thrown by jsp service method?
Explain jsp?
What is the jsp?
What is difference between html and jsp?
Which jsp lifecycle methods can be overridden?
Which categories can be divided jstl tags, give examples.
How can I prevent direct access to a jsp page from a browser?
What is error page in jsp?
What are the three tags used in jsp bean development?
What do you know about pagecontext and what are the advantages of using it?
What is session getattribute in jsp?
What is an expression language?
How can I implement a thread-safe jsp page?
How do I run a jsp file in linux?
What are scripting elements?