please try this
request.getParameter("string").tirm().length() == 0
or
Try with equalsIgnoreCase.
----- Original Message -----
From: "Daniel Herrera Díaz" <daniel@d...>
To: "Pro_JavaServer_Pages" <pro_jsp@p...>
Sent: Monday, May 14, 2001 2:54 PM
Subject: [pro_jsp] Re: Checking a textfield
> Try putting the result of the "request.getParameter("yourfield")" into a
> String variable, then, ask if it's null and then if its not null use the
> String function equals(), if your field is in blank ask for equals("") if
> your field is "0" or an initial value use equals(yourinitialvalue).
>
> note that yourinitialvalue is a String variable
>
> HTH
>
> Daniel Herrera