Check out the static methods of the java.lang.Character class.  isDigit()
should solve your dilemma.

Mark

-----Original Message-----
From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
Sent: Thursday, October 31, 2002 7:04 AM

yes of course I know!
But how can I be sure that this "String" is a "Integer" ?

I mean I can simply convert this String to an Integer,
but I doubt this would help, cause a String can get converted to an
Integer.
(Like A is 65 I think)

So how can I be sure that the user typed 65 and not A ?

Marcus


[EMAIL PROTECTED] schrieb:
> 
> Are you kidding?  Dude, everything typed in an HTML form is a string.  You
> have to do some validation.
> 
> Mark

--
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>

Reply via email to