• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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!
 
Bartender
Posts: 224
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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The same exception was raised for me also. It was fixed by updating to  struts2-jquery-plugin-5.0.3. Surely it will work.
 
Can't .... do .... plaid .... So I did this tiny ad instead:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic