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
What is the
What is jsp declaration?
Which jsp methods can be overridden?
Explain jsp technology?
Why taglib is used in jsp?
What is the difference between directive include and jsp include?
Can I declare a java class in jsp?
Can we define a class in a jsp page?
What is the difference between servletcontext and pagecontext?
What is meant by implicit objects and what are they?
What do you mean by custom tag in jsp?
What is application in jsp?
What is out println in jsp?
Is jsp server side scripting language?
Can we write java code in jsp?