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
What are advantages of jsp over asp, php, pure servlets and others?
What is the include directive?
What are the different scope values for the
Can you disable the caching on the back button of a particular browser?
What is the purpose of
How do I prevent the output of my jsp or servlet pages from being cached by the browser?
Is jsp technology extensible?
Give the use of exception object.
Is jsp compiled?
What is the purpose of jsp?
What is the need of jsp?
Why do we need custom tags in jsp?
What are the steps involved in reading data from a form using jsp?
What is a page directive?
What is the difference between servletcontext and pagecontext?