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
Explain the difference between forward and sendredirect?
Give uses of object cloning?
What is expression language in jsp?
What are the steps involved in reading data from a form using jsp?
What is the purpose of
What is the resourcebundle class in jsp?
What program opens a jsp file?
Can you disable the caching on the back button of a particular browser?
How do I perform browser redirection from a jsp page?
How can we stop errors on display in a jsp page?
What is the use of requestdispatcher?
Which jsp life cycle is in correct order?
How can I prevent the output of my jsp or servlet pages from being cached by the browser?
What jsp lifecycle methods can be overridden?
Mention the advantages of jsp over pure servlets?