how to maintain sessions in jsp?can you tellme the methods.
Answer Posted / manu
A small correction at **
using session oject in jsp.
first u set using following methods
String name="ravi";
session.setAttribute("user",name);
using retrive method
String sessionuser=session.getAttribute("user");**
out.println("welcome"+sessionuser);
u give this last 2 stmts in all jsp pages. it will
display as "Welcome ravi".
| Is This Answer Correct ? | 123 Yes | 33 No |
Post New Answer View All Answers
How to pass information from jsp to included jsp?
Write a simple example for the clone() method.
A jsp page, include.jsp, has a instance variable "int a", now this page is statically included in another jsp page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?
What is dynamic web project?
Which tag is used for error handling in jsp pages?
How to delete a cookie in jsp?
How to include a jsp file in another jsp file?
Can you call jsp from servlet?
How can the applets be displayed in the jsp? Explain with an example.
What are the steps for creating custom tags in jsp?
What is the advantage of using getProperty action, as compared to the accessor method?
What is translation phase?
What is difference between custom jsp tags and beans?
Explain JSP Output comments?
Explain implicit objects in jsp?