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
How can we handle exceptions thrown by jsp service method?
Are dialogue tags necessary?
How do I use a scriptlet to initialize a newly instantiated bean?
Can jsp contain javascript?
What is error page in jsp?
Is jsp a front end?
Explain the uses of
Why are jsp pages the preferred api for creating a web-based client program?
Define jsp declaration?
How do I run a jsp file?
What language is jsp?
How can I prevent the output of my jsp or servlet pages from being cached by the browser?
How do I open a jsp file?
How jsp is compiled?
How do you comment out in jsp?