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

Answer Posted / mayur patel

start session oject in jsp.

first u set using following methods
String name="Mayur4453";
session.setAttribute("user",name);

using retrive method
String suser=session.getAttribute("user");**
out.println("Hi. . !! welcome "+suser);

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about pagecontext and what are the advantages of using it?

543


What is the use of session management?

448


What is meant by session management?

478


Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page? : Citibank

516


What are context initialization parameters?

559






Which jsp implicit objects are thread safe?

488


What is jsp and its features?

535


Is jsp server side or client side?

485


What is the difference between java servlet and jsp?

492


What is jsp api?

480


What is use of scriptlet tags in jsp?

472


Give the syntax for jsp comments.

500


What is tld file?

488


What is include directive in jsp?

497


How we can disable session in jsp?

510