No result defined for action action.UploadAction and result input
2014-05-16 18:36
351 查看
struts.multipart.maxSize struts.multipart.maxSize 默认限制为2M,修改maximumSize为5000000,大约5M。依旧无效。
Struts.xml相关配置如下:
<action name="upload" class="action.UploadAction">
<result name="success">/success.jsp</result>
<result name="input">/upload.jsp</result>
<interceptor-ref name="fileUpload">
<param name=" maximumSize ">5000000</param>
</interceptor-ref>
</action>
解决方法:
在struts.xml中加入 <constant name="struts.multipart.maxSize" value="10000000"/> ,大约10M
原因:maximumSize须小于 struts.multipart.maxSize,而默认值不足5M,所以修改maximumSize无效,
应先修改 struts.multipart.maxSize
----------------------------------------------
即,
若 上传文件大小<maximumSize ,上传成功
若 maximumSize<上传文件大小< struts.multipart.maxSize , 若 上传文件大小 > struts.multipart.maxSize ,
Struts has detected an unhandled exception:
Struts.xml相关配置如下:
<action name="upload" class="action.UploadAction">
<result name="success">/success.jsp</result>
<result name="input">/upload.jsp</result>
<interceptor-ref name="fileUpload">
<param name=" maximumSize ">5000000</param>
</interceptor-ref>
</action>
解决方法:
在struts.xml中加入 <constant name="struts.multipart.maxSize" value="10000000"/> ,大约10M
原因:maximumSize须小于 struts.multipart.maxSize,而默认值不足5M,所以修改maximumSize无效,
应先修改 struts.multipart.maxSize
----------------------------------------------
即,
若 上传文件大小<maximumSize ,上传成功
若 maximumSize<上传文件大小< struts.multipart.maxSize , 若 上传文件大小 > struts.multipart.maxSize ,
Struts has detected an unhandled exception:
Messages : | No result defined for action action.UploadAction and result input |
相关文章推荐
- No result defined for action action.UploadAction and result input
- No result defined for action action.UploadAction and result input(开发错误记录struts2)
- No result defined for action and result input
- 关于问题“404 No result defined for action XXXAction and result input ”的见解
- HTTP Status 404 - No result defined for action EmployeeAction and result input - action类似异常解决及原因剖析
- No result defined for action com.svse.action.UserAction and result input
- struts2 No result defined for action.....and result input
- No result defined for action com.ancs.smis.webapp.action.SmisProblemRectifyAction and result input
- HTTP Status 404 - No result defined for action and result input
- struts2 多文件上传 No result defined for action com.cpms.action.organ.UploadFile and result inpu
- Struts2-No result defined for action and result input
- struts2的上传文件大小限制引起HTTP Status 404 - No result defined for action com.cpms.action.organ.UploadFile and result inpu
- No result defined for action and result input
- 关于问题“404 No result defined for action XXXAction and result input ”的见解
- No result defined for action and result input
- No result defined for action and result input
- No result defined for action com.igit.contract.web.action.ContContractAction and result input
- No result defined for action and result input
- No result defined for action and result input -...
- Struts2疑难--No result defined for action com.marry.action.HqsyAction and result input