Johnson Ragaskli

Greenhorn
+ Follow
since Feb 08, 2024
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Johnson Ragaskli

I have a java webapp which is currently using Struts 2.5. I am trying to upgrade it to Struts 6.

I followed the instructions in the following tutorial:

https://cwiki.apache.org/confluence/display/WW/Struts+2.5+to+6.0.0+migration

However, in my struts.xml file, I have mappings like this:



When I try to follow a link like:

Search!startSearch.action

instead of calling the method startSearch, it silently drops the !startSearch and gives me an error about no execute method being found.

Has Struts 6 dropped support for the dynamic method="{1}" tags? I have other working actions with explicit methods like this:



The existing webapp does work with the {1} method syntax in Struts 2.5.

Any ideas about why the method="{1}" syntax doesn't work in Struts 6 and the best way to fix it?

Thanks!
2 months ago