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 jsp language?
Define Static Block.
Can constructor be used instead of init(), to initialize servlet?
Mention some important jsp action tags.
What is welcome file list?
Why does _jspService() start with an ‘_’ but other lifecycle methods do not?
How do we configure init params for jsp?
what is the extended star schema
Is jsp server side scripting language?
Define Expression
What class.forname will do while loading drivers?
How can information from one JSP be passed to another JSP?
Why taglib is used in jsp?
Mention the implicit objects in a jsp.
What are jsp lifecycle methods?