struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Default action method for unmatched wildcard actions
Date Tue, 27 May 2014 06:04:48 GMT
2014-05-26 18:00 GMT+02:00 Antonio Sánchez <adsn37@gmail.com>:
> That's not working for me.
>
> OK:     /person -> com.myapp.actions.PersonAction#execute (SUCCESS) ->
> person.jsp
>
> FAILS: /person-edit -> com.myapp.action.PersonAction#edit -> person-edit.jsp
> (FAILS even annotating with @Action)

Hm... right, I'm a bit confused I was sure it supposed to work :\

> INSTEAD:/person-edit -> NO ACTION METHOD CALLED -> person-edit.jsp DIRECTLY
>
> However:
>
> OK: /person-edit -> com.myapp.action.PersonEditAction#execute (SUCCESS) ->
> person-edit.jsp
>
> It seems only "execute" method is able to be found and run, even using
> @Action annotation: /person-edit is matching PersonEditAction#execute(), but
> not @Action("edit") PersonAction#edit().

Try setting
struts.convention.action.mapAllMatches = true


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

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


Mime
View raw message