没有合适的资源?快使用搜索试试~ 我知道了~
struts2文件上传
共31个文件
jar:13个
xml:4个
jsp:2个
需积分: 3 25 下载量 6 浏览量
2017-03-22
02:38:52
上传
评论
收藏 4.31MB RAR 举报
温馨提示
利用struts2上传文件 环境配置JDK1.8 Eclipse 版本 Version: Mars Release (4.5.0) tomcat版本7.0.40 注意的问题是文件上传的时候的enctype="multipart/form-data" 如果设置错误会报错 今天初次使用Struts 2做文件上传,出现了一个错误, ognl.MethodFailedException: Method "setUpload" failed for object 文件类型的限制会在struts.xml中进行配置 几种常见的类型,图片格式image/jpeg,image/gif word文档格式doc :application/msword word文档格式docx :application/vnd.openxmlformats-officedocument.wordprocessingml.document
资源推荐
资源详情
资源评论
收起资源包目录
strutsUploadFile.rar (31个子文件)
strutsUploadFile
.project 1KB
WebContent
WEB-INF
result.jsp 423B
lib
commons-lang3-3.1.jar 308KB
asm-commons-3.3.jar 37KB
xml-apis-1.4.01.jar 215KB
commons-fileupload-1.3.1.jar 67KB
struts2-core-2.3.4.1.jar 765KB
commons-io-2.2.jar 170KB
xerces-2.6.2.jar 987KB
javassist-3.11.0.GA.jar 600KB
freemarker-2.3.19.jar 909KB
asm-tree-3.3.jar 21KB
asm-3.3.jar 43KB
ognl-3.0.6.jar 223KB
xwork-core-2.3.4.1.jar 614KB
web.xml 938B
upload.jsp 601B
META-INF
MANIFEST.MF 39B
src
struts.xml 499B
com
action
UploadAction.java 3KB
struts.properties 30B
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 345B
org.eclipse.jdt.core.prefs 364B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.component 500B
.jsdtscope 567B
build
classes
struts.xml 499B
com
action
UploadAction.class 4KB
struts.properties 30B
.classpath 2KB
共 31 条
- 1
资源评论
god_mycode
- 粉丝: 18
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功