struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken McWilliams <ken.mcwilli...@gmail.com>
Subject Re: struts2.5 - Action class is not called
Date Mon, 16 Nov 2015 21:44:07 GMT
I think you should be able to add a more precise definition ahead of the
wild card definition (one without a wildcard) and get the behaviour
expected.

On Mon, Nov 16, 2015 at 1:07 PM, Emi <emilu@encs.concordia.ca> wrote:

>
> using wild cards in action. If you don't want to switch between methods
>> dynamically,
>>
> Use switch methods dynamically.
>
> In action class:
>
> execute() as default
>
> method_name2()
> method_name3()......
>
>
> that is to call execute then you should remove the "*" from the name,
>> remove method
>> parameter, and then struts2 will assume execute should be called by
>> default.
>>
> Need to keep the wild cards setup in struts.xml.
>
> Is there a way, if no method names specified in jsp/tiles/struts, the
> default execute() method is called for Action Class please?
>
> If no such way, there will be too many places have to change /ActionName
> to "/executeActionName".......
>
> Do not have this issue for 2.3.x.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message