struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Trawick" <>
Subject Re: Server side RegExp validation fails yet client side works (using DynaValidatorForm)
Date Sat, 28 Dec 2002 15:57:21 GMT
Knowing this isn't helping, I'm having the same problem only it doesn't even
get to the minlength validation.  Only the required.  My descriptors are
XDoclet generated.  Struts 1.1b2, JBoss 3.0.4 (Jetty), XDoclet 1.2.0.  If
anyone figures this out, please let us know.


----- Original Message -----
From: "John" <>
To: <>
Sent: Tuesday, December 17, 2002 1:46 PM
Subject: Server side RegExp validation fails yet client side works (using

> I'm currently using the Struts 1.1b version. I have a
> problem where I define a simple form with a single
> field; I need to have the field validated using
> "required", "minlength" and "mask" validation
> operators. I'm using DynaValidatorForm's to avoid the
> overhead of implementing a concrete ActionForm class.
> When the client-side validation tags are inserted into
> the JSP file, all three (client-side) validation
> operators work perfectly.
> I commented out the <html:javascript> code and
> onsubmit handler in the JSP file to test the server
> side validation. (Is there an easier way?)
> When I did this, the server side only validated with
> the "required" and "minlength" seemed
> to totally disregard the "mask" validation operation.
> I searched all of the FAQ's and google search result
> sets and couldn't find anything quite like this...
> Has anybody else experienced this? Am I missing
> something?
> (I realize that the regular expression I'm using
> evaluates to digits only and that I could try using an
> existing validation like "int". I found, however, that
> the client side (javascript) implementation of
> parseInt() is not what I'm looking for since "12fga"
> will "pass" the parseInt() call)
> Thank you for looking at my problem!
> Here are the details; I'm using the un-modified
> version of validator-rules.xml that shipped with the
> struts1.1b jar file.
> Here are the other files:
****  snip *****

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message