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
Why jsp is better over static html also explain lifecycle of a jsp?
Explain lifecycle methods.
What language is used to write servlets and jsp?
What is expression tag in jsp?
What is jsp life cycle?
Define Static Block.
Why is _jspservice() method starting with an '_' while other life cycle methods do not?
What is jsp and asp?
What are the elements of jsp?
Why are jsp pages preferred for creating web-based client program?
Explain JSP directives.
What is the resourcebundle class in jsp?
What do you know about jsp tags?
How many jsp scripting elements are there and what are they?
What is the use of pagecontext in jsp?