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

What information is needed to create a tcp socket?

510


How do we print “
creates a new line in html” in jsp?

667


How can I override the jspinit() method within a jsp page?

474


What is the difference between "JTable" and "JTGrid"? can they be used interchangeably?

1794


What is expression language in jsp?

539






What is jspinit method?

506


List all tags that are provided in jstl?

493


How clear chache and buffer of opera browser.

1935


Is jsp and javascript same?

493


Can we use javascript in jsp?

491


Give uses of object cloning?

547


How many types of jsp tags are there?

481


Define JSP Scriptlet.

561


mention the three important tags used in the development of jsp bean.

478


What is difference between sendredirect and requestdispatcher?

490