Try this..
String Name=Request.getParameter("Name");
if (Name.equals(""))
{
System.out.println("Name is null.");
}
else
{
System.out.println("Hurray!")
}
It will work. I faced the same problem.
Hth,
Manish
Purav wrote:
> Hi,
>
> The Request.getparameter() method return null string when it does not find
> the parameter. it does not return null as a keyword
>
> so if i write
> String Name=Request.getParameter("Name");
> if(Name==null)
> then something....
>
> It doesnt work
>
> I am little confused
>
> Can anybody help me out
>
> Purav
>
> ___________________________________________________________________________
> 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
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Live-Your-Dream~~~~
Obstacles are things a person sees when he takes his eyes off his goal.
-E.
Joseph Cossman
___________________________________________________________________________
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