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