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
Why is jstl used?
What are the different types of directives available in jsp?
What are jsp and servlets?
Why do we need custom tags?
What are the benefits of pagecontext implicit object?
Is jsp page extensible true false?
How can I extend the functionality of jsp?
How to retrieve warnings?
What is the purpose of
What is jsp translation phase?
Which one is better jsp or servlet?
Why jsp is better over static html also explain lifecycle of a jsp?
What is jsp net?
What are the events in jsp page?
How do you connect to the database from jsp?