how to maintain sessions in jsp?can you tellme the methods.
Answer Posted / godfather
String str="xxx";
session.setAttribute("xxx",str);//to set session
//so nw the session will get store by the name "xxx".
//To retrieve session
String str1=session.getAttribute("xxx");
| Is This Answer Correct ? | 14 Yes | 10 No |
Post New Answer View All Answers
How does a jsp function?
What is action tag in jsp?
How can we stop errors on display in a jsp page?
What is out in jsp?
How jsp is compiled?
Differentiate between include directive and include action.
Can you use javascript in jsp?
What is the use of requestdispatcher?
How we can disable session in jsp?
How can automatic creation of session be prevented in a jsp page?
Why is it that JComponent have add() and remove() methods but Component doesn’t?
Can you explain what is jsp page life cycle?
What is server context?
In the servlet 2.4 specification singlethreadmodel has been deprecated, why?
What is the full form of jsp?