apache-struts
Outaku
初学者,请多关照。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
struts2 上传文件
1)提交表单设置 [code="html"] 选择文件 [/code] 注意enctype一定要是"multipart/form-data" 2)Action代码 [code="java"] public class UploadAction extends ActionSuppo...原创 2011-06-30 11:51:59 · 160 阅读 · 0 评论 -
struts2 下载文件
1)DownloadAction [code="java"] public class DownloadAction { private String inputPath; public void setInputPath(String inputPath) { this.inputPath = inputPath; } public InputStream ...原创 2011-06-30 12:05:58 · 128 阅读 · 0 评论 -
指定struts2.x 配置文件位置
为了开发时方便,最好把项目的各种配置文件放在一个统一的地方。 这个是指定struts2的配置文件位置的。 web.xml [code="xml"] struts2 org.apache.struts2.dispatcher.FilterDispatcher config struts1.xml,struts2.xml,struts3.xml ...原创 2011-03-11 12:04:43 · 126 阅读 · 0 评论
分享