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" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

