You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Lukasz Lenart <lu...@apache.org> on 2013/07/02 08:37:13 UTC

Re: Struts annotations limited to specific methods

2013/6/29 Paul Benedict <pb...@apache.org>:
> This is the best proposed solution and I am surprised it didn't become part
> of Struts:
> https://issues.apache.org/jira/browse/WW-1967

You can do it yourself right away ;-)

> We should add another level of XML filename checking to to be
> <ActionName>-<MethodName>-.xml

What about Annotations support, we must extend them as well?


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


Re: Struts annotations limited to specific methods

Posted by Lukasz Lenart <lu...@apache.org>.
2013/7/2 Paul Benedict <pb...@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


Re: Struts annotations limited to specific methods

Posted by Paul Benedict <pb...@apache.org>.
My first idea was to add an "actions" attribute on the validator
annotations. For example:

@RequredStringValidator(key="firstName", actions={ "execute", "forward" })

Lacking the attribute means all methods, of course.

Thoughts?


On Tue, Jul 2, 2013 at 1:37 AM, Lukasz Lenart <lu...@apache.org>wrote:

> 2013/6/29 Paul Benedict <pb...@apache.org>:
> > This is the best proposed solution and I am surprised it didn't become
> part
> > of Struts:
> > https://issues.apache.org/jira/browse/WW-1967
>
> You can do it yourself right away ;-)
>
> > We should add another level of XML filename checking to to be
> > <ActionName>-<MethodName>-.xml
>
> What about Annotations support, we must extend them as well?
>
>
> 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
>
>