struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khalid K." <gro...@maikada.com>
Subject Re: validate
Date Mon, 16 Dec 2002 22:12:20 GMT
if text field accepts any character (which includes, newline/cr, blank, tab,
etc)
all you need to validate is if object returned is null....
example:
in u request object, you stored a parameter x with value y,
you can check... if (x == null)   error, else move on...
since your text field can take any value, u dont need to check for anything
else..

Khalid

----- Original Message -----
From: "jenny zhang" <j_zhangca@yahoo.ca>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Monday, December 16, 2002 1:46 PM
Subject: validate


> Hi:
>
> This might not be the right place to post the message.
> But if someone can help me here, I appreciate it.
>
> I have a text field that can be ANY characters. Which
> method should I call to validate it? I don't think I
> should call isLetterOrDigit(char ch), because "letter"
> means "a-zA-Z". but character means more than letter,
> for example, '#' is a character, but it is not letter.
> Am I right? Which method should I call to validate the
> field to be ANY characters?
> I appreciate your help.
>
> Thanks.
>
> Jenny
>
> ______________________________________________________________________
> Post your free ad now! http://personals.yahoo.ca
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message