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
Java Server Page I can use a function in two ways:
Either I declare
What is jstl?
What happens when a page is statically included in another jsp page?
What is the use of requestdispatcher?
What is the purpose of
How to connect jsp and java file?
Give a sample jsp configuration in the deployment descriptor.
Explain JSP Output comments?
How can we disable el?
What is jsp index?
What is tld in jsp?
Why is it that JComponent have add() and remove() methods but Component doesn’t?
What is jspinit method?
Explain translation phase.
What are the different scope values for the jsp objects?