struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Struts 2 XML based validation not working
Date Fri, 21 Dec 2007 16:34:59 GMT
Please reply to struts-user and not directly to responders.

--- Filipe David Manana <fdmanana@ieee.org> wrote:
>   <s:form action="login" namespace="/">
> [...]
> The struts.xml section:
>       <action name="login" class="actions.LoginAction" method="input">
> [...]

If you submit to the "login" action won't it just run the "input" method
again, hence bypassing validation?

I don't see where you're either (a) defining the method to call on a submit,
or (b) defining a different action that doesn't default to the "input"
method.

d.



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


Mime
View raw message