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
What is iselignored in jsp?
How do I run a jsp file in linux?
Why jsp and servlets are used?
What is jsp-config in deployment descriptor?
Can a constructor be used in place of init() method to initialize a servlet?
What is the difference between a jspwriter and a servlet printwriter?
How can you make the finally clause not to fail to execute?
What is meant by session management?
What is application in jsp?
Mention the jstl core tags.
What are the benefits of pagecontext implicit object?
When destroy method of jsp is called?
What is jsp taglib?
How can I override the jspdestroy() method within a jsp page?
Which tag should be used to pass information from jsp to include jsp?