Skip to content
Advertisement

404 error when referencing fileUpload interceptor in Struts 2

I am using struts.xml file which is described below :

JavaScript

It was working before I added the last action upload. When I start the server it is showing me the 404 error. Can somebody help me out in resolving the issue. I am feeling that the issue is due to <interceptor-ref name="fileUpload">.

Advertisement

Answer

Try to add after <interceptor-ref name="fileUpload"> <interceptor-ref name="defaultStack">. If you add explicit interceptor to the action the defaultStack disappears.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement