struts2 上传大文件的问题
我用Struts2的上传大文件时,报了如下异常:
2011-05-10 17:33:37 [ERROR][org.apache.struts2.dispatcher.multipart.MultiPartRequest] - org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out
2011-05-10 17:33:37 [ERROR][org.apache.struts2.interceptor.FileUploadInterceptor] - Processing of multipart/form-data request failed. Read timed out
2011-05-10 17:33:37 [ERROR][org.apache.struts2.dispatcher.Dispatcher] - Could not find action or result
No result defined for action com.huawei.enip.ide.scg.portal.repository.action.RepositoryAction and result input - action - file:/home/scg/tomcat/webapps/scgService/WEB-INF/app-config/struts2/repository.xml:24:76
看这个异常应该是找不到input这个result,我加上以后按道理来说应该会转到相应的页面,但结果却是转到浏览器默认的错误页面,请问一下这是什么原因呢?
2011-05-10 17:33:37 [ERROR][org.apache.struts2.dispatcher.multipart.MultiPartRequest] - org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out
2011-05-10 17:33:37 [ERROR][org.apache.struts2.interceptor.FileUploadInterceptor] - Processing of multipart/form-data request failed. Read timed out
2011-05-10 17:33:37 [ERROR][org.apache.struts2.dispatcher.Dispatcher] - Could not find action or result
No result defined for action com.huawei.enip.ide.scg.portal.repository.action.RepositoryAction and result input - action - file:/home/scg/tomcat/webapps/scgService/WEB-INF/app-config/struts2/repository.xml:24:76
看这个异常应该是找不到input这个result,我加上以后按道理来说应该会转到相应的页面,但结果却是转到浏览器默认的错误页面,请问一下这是什么原因呢?
作者: ljbal 发布时间: 2011-06-09
XML code
配置文件里面没有配置 result
No result defined for action com.huawei.enip.ide.scg.portal.repository.action.RepositoryAction
配置文件里面没有配置 result
作者: JavaAlpha 发布时间: 2011-06-09