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

What are the standard actions available in jsp?

545


Hi, I've applied for HPCL(Information System Officer)& UIIC (A).Plz send me previous/sample papers and any suggestions regarding this exam.Please advice me good study material or related links. Thanks in advance shyam shyamprasad71@gmail.com

1964


Why is _jspservice() method starting with an '_' while other life cycle methods do not?

518


What are scripting elements?

545


What are the implicit el objects in jsp?

544






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

551


Is jsp compiled?

511


What is a tag file in jsp?

510


What is session getattribute in jsp?

537


What is the requirement of a tag library?

538


How are custom tags in jsp created?

493


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

494


How to connect jsp and java file?

469


Define Static Block.

536


What is client scripting?

489