We are using Struts 6.2 on Tomcat 9, and map all .action extensions to actions, for example save-user.action maps to an action correctly.
The web application needs to handle this path parameters ( path variables) ex: save-user.action/name/joe/age/20. As you can see the parameters are send via URL path. The caller is not a browser.
Is there any way that I can configure Struts to handle this URL and map it to correct action?
It's not easy to do it yourself, fortunately there's a solution to use urlrewrite filter in front of struts filter. See Why URL rewriting is not working in Struts 2:
Then you add a rule to rewrite URL similar like this: