Thanks a lot.It worked.

Raj


>From: Shiraz Wasim Zaidi <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Session parameters.
>Date: Wed, 20 Sep 2000 21:36:23 -0500
>
>What is happening is that your Delete.jsp is not having the same value of
>LoginName and Password
>String variable when you are invoking getValue method.
>
>What's wrong is the way u are binding ur data. You are using the same key
>as
>the
>value being binded. This itself defeats the purpose of maintaing data in
>Session,
>when you need the data to look into itself.
>
>see below for the right code
>
> > Object Ologin = (Object)LoginName;
> > Object Opassword = (Object)Password;
>
>You dont require these 2 above steps.
>
> > Hsession.putValue(LoginName,Ologin);
>
>Change this to
>Hsession.putValue("LoginName",LoginName);
>
> > Hsession.putValue(Password,Opassword);
>
>Change this to
>  Hsession.putValue("Password",Password);
>
> > Object Ologin1 = Hsession.getValue("LoginName");
> > Object Opassword1      = Hsession.getValue(Password);
>
>Change it to
>String slog= (String)Hsession.getValue("LoginName");
>String spasswd= (String)Hsession.getValue("Password");
>
>In ur Delete.jsp use the following code
>String slog= (String)Hsession.getValue("LoginName");
>String spasswd= (String)Hsession.getValue("Password");
>And it should work.
>
>
>-Shiraz
>
>===========================================================================
>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

_________________________________________________________________________
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

Reply via email to