<action name="uploadSurveryMap" method="uploadSurveryMap" class="com.supermap.earth.rims.action.disaSurRpt.DisaSurverreportAction">
<interceptor-ref name="fileUpload">
<param name="maximumSize">4000000</param>
<param name="allowedTypes">image/bmp,image/png,image/gif,image/pjpeg,image/jpg</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
后来又报错:No result defined for action com.supermap.earth.rims.action.template.Templat
后经过检查才知道,产生这个异常的原因是因为struts.xml里配置文件时,少配置了<result name="input">/upload.jsp</result>
这一行才导致的错误!
<action name="uploadSurveryMap" method="uploadSurveryMap" class="com.supermap.earth.rims.action.disaSurRpt.DisaSurverreportAction">
<interceptor-ref name="fileUpload">
<param name="maximumSize">4000000</param>
<param name="allowedTypes">image/bmp,image/png,image/gif,image/pjpeg,image/jpg</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"></interceptor-ref>
<result name="input">/upload.jsp</result>
</action>