How to have URLs without a suffix (e.g .action) in Struts 2?
问题 Here's the thing, I need to not only serve java, but also some javascript files, with my .war. So e,g. if someone goes to the URL: example.com/js/foo.jar Then I need that to be properly served as a javascript file. At the same time, if someone goes to: example.com/bar I need that to be served by Struts2 as a possible controller. The methods I've found online of removing the suffix from the url, would cause both URls to be served by struts 2 (and hence give an error for the first foo.js file