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
Can a subsequent request be accessed with one’s servlet code, if a request attribute is already sent in his jsp?
Why do we need custom tags?
Why jsp is faster than servlet?
What are page directives?
What are the primary differences between the jsp custom tags and java beans?
What are request and response objects?
Which is better jsp or javascript?
Define scriptlet, expression and declaration in jsp?
What is jsp-config in deployment descriptor?
what is the difference between jsp and servlets ?
Which jsp life cycle is in correct order?
What is JTGrid?
What are the implicit objects in jsp?
Why does _jspService() start with an ‘_’ but other lifecycle methods do not?
What is scriptlet tag in jsp?