Hey,
My problem is when I use the fileUpload interceptor. When I add the interceptor to the action, the File object in the form bean comes out as null. Meaning it wasnt uploaded. If I take out the interceptor, the file does get uploaded and the File object is not null and everything works normally. Even when I have no parameters for the interceptor such as "allowedTypes" and "maximumSize", the file still does not load the File object in the form bean in
struts 2. What is the correct way to use this interceptor? I have marked the line in the struts.xml shown, which when taken out, allows everything to work fine.
thanks in advance for your assistance
---------------------------------------------------------------------------
<package name="tutorial" extends="struts-default">
<interceptors>
<interceptor name="fileUpload" class="org.apache.struts2.interceptor.FileUploadInterceptor">
</interceptor>
</interceptors>
<action name="UploadPic" class="pic.Upload">
<interceptor-ref name="fileUpload"/> ***(this line taken out works fine, with this line File object becomes null)***
<result name="input">Error.jsp</result>
<result>/WEB-INF/ShowPic2.jsp</result>
</action>
</package>
---------------------------------------------------------------------------