Hi,
the problem you facing may be because of you are requesting the parameter
which is not send by previous page.For this you just pass the value of B in
querystring as ?B=" "
bye
Jansi
----- Original Message -----
From: sumit shah <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 1:32 AM
Subject: request.getParameter
> Hi,
> i am passing two values, A and B in the url as querystrings, when going
> from one page to another.
> So to retrieve the values i simply do request.getParameter("A") and
> simillarly for B. When the first time i load the page i dont want to pass
> the value for B.
> What should i write in my code to check for the null value of B. I
tried
> doing request.getParameter("B")==null, but still while running i got a
> nullPointerException.
> how should i check for a null value of request.getParameter()
> thanks.
> _________________________________________________________________________
> 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
===========================================================================
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