struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Vieira da Luz <joao....@gmail.com>
Subject Re: exception thrown while trying to validate user input
Date Sun, 19 Dec 2004 04:02:43 GMT
What version of struts are you using! I think that the version you are
using might be de reason for this problem.

ActionErrors has been deprecated in favor of ActionMessages as far as
I know in recent struts versions.

On the other hand, "struts in action" covers afaik version 1.1.

Hope this help.




On Fri, 17 Dec 2004 10:22:49 -0500, Klimenko, Mariya
<Mariya.Klimenko@eia.doe.gov> wrote:
> java.lang.NoSuchMethodException:
> mypackage.myclass.validateTotalFunds(java.lang.Object,
> org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field,
> org.apache.struts.action.ActionMessages, javax.servlet.http.HttpServletRequest)
> 
> As you can see here it is looking for a method that accepts ActionMessages as one
> of parameters,
> but "Struts In Action" book and web examples show that ActionErrors should be
> passed instead and that
> is what I coded.
> Any help would be appreciated.
> Thanks in advance.
> Mariya.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

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


Mime
View raw message