This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 not able to override default interceptor stack Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 not able to override default interceptor stack" Watch "Struts2 not able to override default interceptor stack" New topic
Author

Struts2 not able to override default interceptor stack

Shruti Verma
Greenhorn

Joined: Dec 18, 2011
Posts: 8
Hello,

I have a struts2 application, where in I do not want the file upload interceptor that is part of the default stack to run. I have tried doing this in multiple ways but looks like it is not getting disabled. Here is my struts.xml. Can someone please explain how to override the default interceptor stack so that I can remove/disable fileupload that is done by framework.

(I do understand that framework provides the feature for convenience but my situation is such that I need to ignore framework fileupload.)

I have set "struts.multipart.maxSize" = 0 so that even if FileUploadInterceptor is being called, it will not upload the file and I see an error in the log file for max file size exceeded. But my question is this constant should not be used at all. FileUploadInterceptor should not be called in the stack as I have removed it.


Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 not able to override default interceptor stack
 
Similar Threads
File is not uploaded using struts2
Struts 2 file upload tag type allowed error
Use of validation interceptor with alias interceptor in struts2
Struts 2 Fileupload problem
Null pointer Exception when insert new record to database using struts2 and hibernate3