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 the advantage of using getProperty action, as compared to the accessor method?
What are custom tags?
What is asp and jsp?
What do you mean by jstl?
Which jsp methods can be overridden?
What are the three tags used in jsp bean development?
Mention the scope values for
What are the lifecycle phases of a jsp?
What does it mean when tags or attributes are said to be deprecated?
Can I declare a java class in jsp?
Is jsp technology extensible?
What is request scope in jsp?
Explain what is jsp ?
How can I set a cookie and delete a cookie from within a jsp page?
What is a page directive?