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

Answer Posted / prasanthi

small correction in answer 1:
session.setAttribute("user",name);
using retrive method
//String sessionuser=session.getAttribute(name);
String sessionuser=(String)session.getAttribute(name);

Is This Answer Correct ?    6 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are custom tags in jsp created?

492


Which language is used to write servlets and jsp?

461


What do you mean by custom tag in jsp?

516


What is jstl (jsp standard tag library)?

530


How can you avoid scriptlet code in jsp?

528






Can a jsp page instantiate a serialized bean?

571


What language is used to write servlets and jsp?

471


What is application scope in jsp?

513


What is the standard action?

541


Explain handling of runtime exceptions.

649


What is context url?

491


Why is jsp used for?

504


What is jsessionid?

533


What are different types of comments used in jsp?

508


Why jsp and servlets are used?

513