This week's book giveaway is in the JDBC and Relational Databases forum.
We're giving away four copies of Murach's MySQL and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upgrading to Struts 6

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 214
7
Android Python Oracle Postgres Database Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello and Welcome to the Coderanch!

For making your problem with upgrade to Struts 6 visible you should give more information about the error and post all relevant error message(s) from the logs here. This may shed more light on the reason why execute() method was not found.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic