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
What is error page in jsp?
How to access java variable in jsp?
What is difference between sendredirect and requestdispatcher?
How can you include the results of another page?
Define Static Block.
What are directives in jsp?
What are the different types scripting elements in jsp?
What is context url?
Why are jsp pages preferred for creating web-based client program?
What is the difference between directive include and jsp include?
Why are implicit objects not available in a regular jsp page?
Explain what is jsp ?
What are the features of jsp?
What is the jsp:plugin action ?
What is jsp servlet?