how to maintain sessions in jsp?can you tellme the methods.
Answer Posted / faizan samad
String name="faizan";
session.setAttribute("user",name);
String sessionuser=session.getAttribute(name);
out.println("welcome"+sessionuser);
it will display as "Welcome Faizan".
| Is This Answer Correct ? | 17 Yes | 22 No |
Post New Answer View All Answers
What are advantages of jsp over asp, php, pure servlets and others?
What are the lifecycle phases of a jsp?
How to access java variable in jsp?
What is jsp net?
Show the 2 types of comments in JSP.
What are the steps involved in reading data from a form using jsp?
How do I view jsp files in my browser?
What is scriptlet in jsp?
What is the difference between a scrollbar and a scrollpane in jsp?
What is session management in jsp?
What is session object in jsp?
What is the purpose of jsp?
What is the requirement of a tag library?
How can the output of JSP or servlet page be prevented from being cached by the browser?
What is the jsp?