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 can I enable session tracking for jsp pages if the browser has disabled cookies?
Can an interface be implemented in the jsp file?
Which one is better jsp or servlet?
Can you call jsp from servlet?
What is the jsp:plugin action ?
What is difference between custom jsp tags and beans?
How can I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.
What are the 3 tags used in jsp bean development?
What are the advantages of jsp over servlet?
Is the session object always created on the jsp page, is it possible to disable its creation?
How to delete a cookie in jsp?
How can I extend the functionality of jsp?
What is difference between java and jsp?
How can I declare methods within my jsp page?
What is scriptlet tag in jsp?