`

HTTP Status 404 - No result defined for action com.test.action.UploadAction and

阅读更多
HTTP Status 404 - No result defined for action com.test.action.UploadAction and result input 的解决办法:

问题原因分析:
1:你定义的action没有在struts.xml中注册。
2:action所处理的filed域和对应的action这个java文件中的属性名不同。
3:容易忽视的是,你的form表单中没有这个属性,enctype ="multipart/form-data" ,或者这个属性用的默认值application/x-www-form-urlencoded

解释:enctype属性的意思是设置表单的MIME编码,默认情况下的application/x-www-form-urlencoded这个属性值不能用于文件上传。
分享到:
评论

相关推荐

    BURNINTEST--硬件检测工具

    - Changed the Memory test to wait for the Video Playback test and 3D test to allow memory allocation for these tests. - Minor changes to the No operation error watchdog timer for the CD and Hard ...

    Software Testing and Continuous Quality Improvement

    Software Testing and Continuous Quality Improvement <br>SECTION I SOFTWARE QUALITY IN PERSPECTIVE . . . . . . . . . . . . . . . 1 1 Quality Assurance Framework. . . . . . . . . . . . . . . . . ....

    2009 达内Unix学习笔记

    老师测评网址 http://172.16.0.198:8080/poll/ 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ 一、注意事项 命令和参数之间必需用空格隔开,参数和参数之间也必需用空格隔开。 一行不能...

    a project model for the FreeBSD Project.7z

    There is no defined model for how people write code in FreeBSD. However, Niels Jørgenssen has suggested a model of how written code is integrated into the project. Figure 4-1. Jørgenssen's model ...

    k7 SRIO参考例程

    - Support for ML505, ML605 and SP605 boards (see Release Notes AR for details) 3. SUPPORTED DEVICES - Virtex-6 LXT/HXT/SXT/CXT - Spartan-6 LXT - Virtex-5 LXT/FXT/SXT - Virtex-4 FX 4. RESOLVED ...

    ZendFramework中文文档

    使用 ErrorHandler 作为一个 404 处理器(handler) 7.10.5.2.2. 处理以前呈现的(rendered)输出 7.10.5.2.3. 插件用法示例 7.10.5.2.4. 错误控制器示例 7.11. 使用传统的模块目录结构 7.11.1. 简介 7.11.2. ...

    iPod+Authentication+Coprocessor+Spec+2.0C+R1

    Figure 4-3 Self-test Control and Status register, write-only bits 23 Figure 4-4 Self-test Control and Status register, read-only bits/24 Table 4-1 iPod Authentication Coprocessor 2.0C register map 17 ...

Global site tag (gtag.js) - Google Analytics