struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Struts annotations limited to specific methods
Date Mon, 08 Jul 2013 19:41:11 GMT
2013/7/2 Paul Benedict <pbenedict@apache.org>:
> My first idea was to add an "actions" attribute on the validator
> annotations. For example:
>
> @RequredStringValidator(key="firstName", actions={ "execute", "forward" })

Or maybe method names? But then the same validation could be executed
for different actions which map to the same method.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message