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 to disable scripting?
Mention some important jsp action tags.
What is the _jspservice() method?
Why we use jsp instead of html?
Mention the advantages of jsp over pure servlets?
Explain the difference between jspwriter and servlet printwriter in jsp?
What is the page directive is used to prevent a jsp page from automatically creating a session?
List down the major differences between the jsp custom tags and java beans.
Can you call jsp from servlet?
What are the primary differences between the jsp custom tags and java beans?
Which jsp lifecycle methods can be overridden?
What is the use of pagecontext in jsp?
How many tags are provided in jstl?
How can automatic creation of session be prevented in a jsp page?
Differentiate between