I’m working on a project that’s having us replace an old struts 1 application with a new struts 2 application. However, our new Struts 2 application needs to work with many other business applications that expect to call the application with the same URL. So, there will be links such as
businessApplication/view/getById.do?id=XXXXXXXXXX
Our new application uses no suffix (though, you can optionally specify the .action suffix) as opposed to the .do suffix. What I want to do is capture those old URLs (with the .do suffix) and forward to the appropriate action, like:
businessApplication/view/findById?Id=XXXXXXXX
However, I can’t find a way to capture anything with the .do suffix. I tried setting the action name to getById.do and getById* to no avail.
Any ideas?
Thanks!
I found my answer in the top answer for this: web.xml filter-mapping not forwarding to struts
This is what I added to my struts.xml