Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Checking a textfield


Message #1 by "Johan Ruttens" <ruttens_johan@h...> on Sat, 12 May 2001 10:34:06
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

  Return to Index