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 is the difference between jsp and thymeleaf?
What is taglib uri in jsp?
What does it mean when tags or attributes are said to be deprecated?
What is a jsp and what is it used for?
Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme
Perform a browser redirection from a jsp page?
Can we call servlet from jsp?
What are the literals used in jsp?
Which directive is used in jsp custom tag?
How can we forward the request from jsp page to the servlet?
What are the possible values for language directive?
Mention the jstl core tags.
How to retrieve warnings?
What is the purpose of
What do jsp literals consist of?