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

Answer Posted / aryan

String name="Arpit";
session.setAttribute("user",name);
String sessionuser=session.getAttribute("user");
out.println("WellGud"+sessionuser);

Is This Answer Correct ?    36 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different jsp element types?

497


write a program in javasacript to shake the window

2478


What are jsp el implicit objects and how it’s different from jsp implicit objects?

517


What are the events in jsp page?

484


How is jsp include directive different from jsp include action. ?

534






Which syntax is used to comment jsp?

498


Why are implicit objects not available in a regular jsp page?

615


What are the attributes on page directives?

506


What is difference between include directive and jsp:include action?

490


What is the standard action?

527


What are the primary differences between the jsp custom tags and java beans?

517


Explain the difference between servlet and jsp?

541


Explain what is jsp ?

560


Explain the action?

587


Can jsp contain javascript?

488