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
Explain the
Is jsp static or dynamic?
Is jsp used?
What is the difference between jsp and php?
What is jsp taglib?
What are directives in jsp?
How jsp is executed?
How do I use a scriptlet to initialize a newly instantiated bean?
What is page scope?
How is scripting disabled?
What do you know about jsp expression language (jsp expression language – el)?
How to run java program in jsp page?
Why is jsp used for?
Mention some important jsp action tags.
What are the components that make up a tag library in jsp?