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 do you know about jsp expression language (jsp expression language – el)?
Define JSP Scriptlet.
What is jsp translation phase?
How to create menu in jsp with example?
How does jsp engines instantiate tag handler classes instances?
What is scriptlet and what is expression?
What is the difference in using request.getrequestdispatcher() and context.getrequestdispatcher()?
How do we configure init params for jsp?
How can we forward the request from jsp page to the servlet?
What is the purpose of creating custom tags?
What does jsp mean in text?
What is a declaration statement?
Define jsp declaration?
Differentiate between
What is jstl?