struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Sánchez <ads...@gmail.com>
Subject Re: Default action method for unmatched wildcard actions
Date Tue, 27 May 2014 06:21:27 GMT


El mar 27 may 2014 08:04:48 CEST, Lukasz Lenart escribió:
>
> 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 :\

I believe that is not a Conventions feature, but would be great to be.

>
>>
>> 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

Already tried; it didn't work.

>
>
> Regards

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


Mime
View raw message