in the servlets use
anyClass aps =null;
session.putValue("bnShopInq", aps);

in the jsp file
use
anyClass anyClassObject =(anyClass)session.getValue("bnShopInq")
if(anyClassObject!=null)
{
}
else
{

}

>From: "Garg, Anshu (CAP, RAIL)" <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: Thu, 30 Nov 2000 13:55:33 -0600
>
>I am facing a peculiar problem.
>
>"aps" is an object handle. For a particular case, "aps" is null.
>
>In my servlet I have a statement:
>         session.putValue("bnShopInq", aps);
>
>When the control goes to the JSP from the servlet, I am checking:
>         if (bnShopInq != null)
>But still it goes in the above if loop although bnShopInq should be null.
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to