摘要: 1. namespace决定访问action的路径; 如果省略,将代表任意路径; 2. class 可以省略,省略之后将代表 ActionSupport 3. name 可以省略,将代表success 阅读全文
posted @ 2013-12-01 22:41 iLincoln 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 作用:简化了视图页面的编写 在jsp中引入标签库: struts2标签库的分类: UI标签: 非UI标签: ajax标签: 阅读全文
posted @ 2013-12-01 22:35 iLincoln 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 如何搭建Struts2: 1.导入jar包 commons-fileupload-1.3.jarcommons-io-2.0.1.jarcommons-lang3-3.1.jarfreemarker-2.3.19.jarjavassist-3.11.0.GA.jarognl-3.0.6.jarstruts2-core-2.3.15.3.jarxwork-core-2.3.15.3.ja... 阅读全文
posted @ 2013-12-01 22:09 iLincoln 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Struts2是什么: Struts2是整合了struts1和webwork的技术优点的使用广泛的MVC框架; Struts2的特点: 1.基于MVC框架,结构清晰,便于开发人员掌控开发流程; 2.使用OGNL进行参数传递;OGNL标签提供了从各个作用域中获取数据; 3.强大的拦截器: 4.易于测试:Struts2的action都是简单的POJO,可以方便的对... 阅读全文
posted @ 2013-12-01 12:26 iLincoln 阅读(382) 评论(0) 推荐(0) 编辑