I'm trying to build a javascript / ajax uploader which submits a form / file upload to an action. However when the form is submitted, the validation interceptor prevents my action from being run for some reason, and returns 'input' as the result. I'm not sure why, but I'd like it to stop.
How can I disable the validation interceptor only for MyAction.execute()
? Here's my interceptors code from struts.xml
:
<interceptors>
<interceptor name="appInit"
class="com.example.myApp.interceptors.AppInit">
</interceptor>
<interceptor-stack name="appDefault">
<interceptor-ref name="servletConfig"/>
<interceptor-ref name="appInit" />
<interceptor-ref name="defaultStack">
<param name="exception.logEnabled">true</param>
<param name="exception.logLevel">ERROR</param>
<param name="params.excludeParams">dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,parameters\...*,submit</param>
</interceptor-ref>
</interceptor-stack>
</interceptors>