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 ? | 8 Yes | 3 No |
Post New Answer View All Answers
How can you make the finally clause not to fail to execute?
What is the page directive is used to prevent a jsp page from automatically creating a session?
Why is _jspservice() method starting with an '_' while other life cycle methods do not?
Mention the advantages of jsp over pure servlets?
How can we stop errors on display in a jsp page?
What are the steps for creating custom tags in jsp?
What is the
What are the standard actions available in jsp?
What is a tag file in jsp?
Explain client and server side validation?
Explain some jsp life-cycle methods that can be overridden.
What is the scope of response object?
How to send data from jsp to jsp?
Is there a way to reference the "this" variable within a jsp page?
What is a expression?