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 do you mean by custom tag in jsp?
What are stored procedures? How is it useful?
Which package does jsp api consist of?
What is translation phase?
What is difference between sendredirect and forward?
Why is it not recommended to use script elements in jsp?
What is cookies in jsp?
Tell us about the stages (phases) of the jsp life cycle.
What is the difference between directive include and jsp include?
What is the include directive?
What program opens a jsp file?
How we can include the result of another page in jsp?
What is a translation unit?
Why don’t we need to configure jsp standard tags in web.xml?
What is jsp and its features?