struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <w...@wantii.com>
Subject Re: S2 Type conversion error and validation problem
Date Thu, 03 Dec 2009 15:22:36 GMT
On Wed, Dec 2, 2009 at 9:22 AM, Marsman <mars.man@gmx.de> wrote:
>
> Hi!
>
> after a type conversion error, Struts goes on in the interceptor stack and
> validates the empty action property with useless results. How can I avoid
> this? (I'm using the default interceptor stack.) And how can I avoid the
> NoSuchMethodException thrown every time a user enters invalid alphanumeric
> values in my numeric or date fields?
>
> Does anybody know a best practice validating numeric fields against numeric
> data?
>


I would start here -

http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-TypeConversionErrorHandling

-Wes


-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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


Mime
View raw message