Hi,
I am facing a problem with retreiving Session parameters.
Below is the code in Search.jsp.In this JSP,when I use the method getValue,I
can retrieve the values of LoginName and Password.
But from this JSP,I am invoking Delete.jsp,where again I am trying to
retrive the same parameters by getValue(),but I get only null.Whereas the
Session ID is the same.
Can anyone suggest why I can't get the values in the second JSP?
HttpSession Hsession= request.getSession(true);
Object Ologin = (Object)LoginName;
Object Opassword = (Object)Password;
Hsession.putValue(LoginName,Ologin);
Hsession.putValue(Password,Opassword);
Object Ologin1 = Hsession.getValue(LoginName);
Object Opassword1 = Hsession.getValue(Password);
String slog=(String)Ologin1;
String spasswd= (String)Opassword1;
out.println("SESSION VALUE OF LOGIN IS : "+slog);
out.println("SESSION VALUE OF PASSWORD IS "+spasswd);
Thanks in advance,
Raj
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets