czw., 8 lut 2024 o 16:39 apacheStrutsUsers8
napisaĆ(a):
>
> I have a Struts app which I am upgrading from Struts 2.5 to Struts 6. In my
> struts xml file, I currently have actions which have the allowed-methods tag
> like this:
>
>
> /done.jsp
> start, finish, next
>
>
> However, when I try to call someAction!start.action, the start method is not
> called and it looks for the execute method instead. The same thing happens
> for the finish and next methods.
>
> Any guesses why it is not working? Or ideas on how to fix it? The existing
> code does work correctly in Struts 2.5 and methods without the "{1}" syntax
> do work (i.e. if there is a specific method="finish").
Did you enable DMI? It's disabled by default
https://github.com/apache/struts/blob/master/core/src/main/resources/org/apache/struts2/default.properties#L115
Cheers
Lukasz
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org