how to maintain sessions in jsp?can you tellme the methods.
Answer Posted / murali mohan rao
first set the value in session using following methods
***Don't create the unnecessary Strings***
<%session.setAttribute("user","Murali");%>
Below statement you can use in any JSP to print the
welcome message. Start using JSP tags to better performance
and better coding.
<%= "Welcome to "+session.getAttribute("user")%>
| Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
Is jsp front end or backend?
How to pass information from jsp to included jsp?
Why use of scripting elements in jsp is discouraged?
How are jsp(java server pages) better than asp(active server pages)?
What is the difference between directive include and jsp include?
Can we define a class in a jsp page?
Can constructor be used instead of init(), to initialize servlet?
What is the difference between a scrollbar and a scrollpane in jsp?
How can I handle jsp page errors?
Where is jsp used?
How did you implement caching in jsp?
What is use of scriptlet tags in jsp?
What is the use of?
Is jsp platform dependent?
Is jsp better than servlet?