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
How to delete a cookie in a jsp?
What is context in web application?
What is scriptlet and what is expression?
What is taglib uri in jsp?
List the various action tags used in jsp.
List the different scope values for the
Which jsp implicit objects are thread safe?
Explain translation phase.
Define scriptlet, expression and declaration in jsp?
Can constructor be used instead of init(), to initialize servlet?
What are jsp and servlets?
What are the possible values for language directive?
Show attributes of page directives.
What is expression language injection?
What do you mean by isscriptingenabled attribute?