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
What is use of scriptlet tags in jsp?
What is called jsp directive?
What is the
What is welcome file list?
What is jsp and its uses?
Explain client and server side validation?
What is the
What is jsp servlet?
How to call java method in jsp page on button click?
What is difference between sendredirect and requestdispatcher?
What is the jsp:setproperty action?
Why jsp and servlets are used?
Why is used in jsp?
Why do we need servlets and jsp?
Which implicit object is not available in normal jsp pages?