how to maintain sessions in jsp?can you tellme the methods.
Answer Posted / brindha.d
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(name);
out.println("welcome"+sessionuser);
u give this last 2 stmts in all jsp pages. it will
display as "Welcome ravi".
Is This Answer Correct ? | 121 Yes | 55 No |
Post New Answer View All Answers
What are the different types of jsp tags?
Why session is used?
What are jsp action tags?
What is expression tag in jsp?
What is translation phase?
What are the literals used in jsp?
Can we define a class in a jsp page?
Explain scriptlet, expression and declaration in jsp.
Can we call servlet from jsp?
How to use jsp el to get http method name?
How to call java method in jsp page on button click?
How many types of jsp tags are there?
Explain static method?
List the different scope values for the
How can we avoid direct access of jsp pages from client browser?