struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David G. Friedman" <hum...@ix.netcom.com>
Subject RE: problem with required validation
Date Thu, 02 Dec 2004 05:04:22 GMT
Rajesh,

What version of Struts or commons validator are you using?  I'm on Struts
1.2.4 (it has the Commons Validator 1.1.3) and both the JavaScript AND the
server-side Java class trim off leading and trailing  white space characters
for the "required" validation.  Yes, I read the code in both places tonight
because I'm researching something on my own with the validation framework.
Lucky me I'm reading the code you're asking about.  :)

Regards,
David

-----Original Message-----
From: Rajesh [mailto:rajesh@gkbcinc.com]
Sent: Wednesday, December 01, 2004 11:25 PM
To: 'Struts Users Mailing List'
Subject: problem with required validation


Hai all

in validation of required field

when user gives just a spaces it considereds it as charectors

i want to stop this that even if user types blank speces i need to specify
that he must type letters of numbers i dont want to use mask here

Regards,

Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.

There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies.
                                                    -- C.A.R. Hoare



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


Mime
View raw message