在struts开发过程中,表单提交经常遇到“ No result defined for action and result input ”
这次发生在表单中包含上传文件功能,form 中加上属性enctype="multipart/form-data"。上传文件jsp代码<input type="file" name="loadup" id="upload" />。当上传文件为空的时候,表单提交正常。当不为空时,提交报错“No result defined for action and result input”。
本地环境是正常的,部署到正式环境,老报这个错,百思不得其解。
打开浏览器,查看post信息,一起正常。
。。。。
最后发现在控制台中发现 Processing of multipart/form-data request failed. \tmp\upload__6d4c885e_13d291104b0__8000_00000000.tmp (拒绝访问。),原来是部署的文件夹没有操作权限。原因是在struts.properties中struts.multipart.saveDir =/tem。当"struts.multipart.saveDir"为“/temp”时,
为当前的根目录下的temp目录。 即user.dir + ‘/tem’ 。而该路径我们没有操作权限。所以报错。
解决办法:struts.multipart.saveDir =。不填该值。会默认到${tomcat_home}\work\Catalina\localhost\项目名
struts.multipart.saveDir 是struts上传文件是用来保存临时文件的临时目录
相关推荐
jsp\No result defined for action and result input.doc
No result defined for action.doc
但是在项目经过本地测试没有任何问题,打包上线后却会报错 webpackJsonp is not defined。这是因为公共文件必须在自己引用的js文件之前引用。 可以手动改文件引用,但是推荐以下解决办法: 找到build→webpack.prod...
django执行命令 python manage.py startapp xxx报错os not defined问题
RF and Digital Signal Processing for Software-Defined Radio: A Multi-Standard Multi-Mode Approach by Tony J. Rouphael RF and Digital Signal Processing for Software-Defined Radio: A Multi-...
PhpCms2008 SP4 110121 更新内容: 1、删除构造函数,解决Redefining already defined constructor for class 问题 2、更新标签选择栏目,子栏目无法显示问题 3、admin/template.inc.php 写错单词 模板管理 BUG 4、...
to present signal processing principles used in the software defined radio, ranging from analog ,digital modulation to RF, DSP and data conversion.
linux ls find 时大于2G文件时出现Value too large for defined data type 系统本身支持大于2G文件但查询有问题的解决办法
Software-defined radios (SDRs) have been around for more than a decade. The first complete Global Positioning System (GPS) implementation was described by Dennis Akos in 1997. Since then several ...
今天小编就为大家分享一篇解决Pycharm下面出现No R interpreter defined的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
_DllMain@12 already defined in
LNK2005:symbol already defined和LNK1169:one or more multiply defined symbols found
struts1.3.9 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the ...
3G软件无线电software defined radio for 3G,很不错,可惜是英文的,
and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal ...
springer 2007年出版的书(共476页),作者是HÜSEYIN ARSLAN (University of South Florida, Tampa, FL, USA)。 本书的结构如下: ...• Applications of cognitive radio and SDR (Chapters 13 and 14)
are defined for these two systems. It is shown that the performance index functions are equivalent and the optimal consensus control problem of the input-delayed system can be cast into that of the ...
Software Defined Radio Architectures, Systems and Functions
Models for Probability and Statistical Inference was written over a five-year period and serves as a comprehensive treatment of the fundamentals of probability and statistical inference. With detailed...