how to maintain sessions in jsp?can you tellme the methods.

Answer Posted / manu

A small correction at **


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("user");**
out.println("welcome"+sessionuser);
u give this last 2 stmts in all jsp pages. it will
display as "Welcome ravi".

Is This Answer Correct ?    123 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is jsp page extensible true false?

494


Why do we need custom tags in jsp?

482


Explain the jsp implicit objects?

523


What is the purpose of creating custom tags?

527


Why jsp is used in java?

489






What is action tag in jsp?

494


What do you mean by jsp directives?

541


What is a jsp container?

492


Show attributes of page directives.

563


Explain jsp action elements or action tags?

481


What is cookie with example?

513


What is jsp and its architecture?

505


Mention the various implicit objects used in the expression

506


What are stored procedures? How is it useful?

508


Which of the following action variable is used to include a file in jsp?

487