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 to create menu in jsp with example?
What is jsp taglib?
What is expression language injection?
How is jsp include directive different from jsp include action. ?
What is context in web application?
Why is jsp used for?
How many tags are provided in jstl?
What is meant by jsp?
What is jsp and its features?
What is dynamic web project?
What is request scope in jsp?
Explain handling of runtime exceptions.
How do you delete the session data?
How will you use jsp el in order to get the http method name?
What is the advantage of using getProperty action, as compared to the accessor method?