摘要: 项目需要在struts1.x+spring2.5环境下实现 上传下载模块。 现总结如下:前台页面在jsp页面中添加 注意:数据一定要以enctype="multipart/form-data" 形式提交上去配置web.xml 1 2 6 7 HelloApp 8 9 10 upload.jsp11 12 13 14 org.springframework.web.context.ContextLoaderListener15 16 17 ... 阅读全文
posted @ 2014-03-26 16:40 Alcc 阅读(444) 评论(0) 推荐(0)
摘要: 总结下Struts2的传参方式一:直接在xxxAction中声明变量,并设置get、set方法。前台直接传过来 1 public class UserAction { 2 /** 3 * Logger for this class 4 */ 5 private static final Logger logger = Logger.getLogger(UserAction.class); 6 7 UserService userService = null; 8 9 public UserService getUserService() ... 阅读全文
posted @ 2014-03-26 16:32 Alcc 阅读(248) 评论(0) 推荐(0)