
学习资料
文章平均质量分 75
sun_boy1
正在努力学习java、大数据。
展开
-
Struts2框架的两个核心
struts.xml和struts.properties 其中struts.xml文件主要负责管理应用中的Action映射,以及该Action包含的Result定义等。除此之外,Struts 2框架还包含一个struts.properties文件,该文件定义了Struts 2框架的大量属性,开发者可以通过改变这些属性来满足应用的需求。 struts.propertie转载 2015-06-08 15:17:13 · 1830 阅读 · 0 评论 -
在web.xml中为Struts2配置拦截器
在web.xml中为Struts2配置拦截器 xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee转载 2015-06-08 15:27:13 · 1671 阅读 · 0 评论 -
创建Struts2的Action
创建Struts2的Action 1.Struts2中action的特点:Struts2的Action可以继承com.opensymphony.xwork2.ActionContext,但最好是不继承任何类和接口的普通类,通过struts.xml的package节点下的节点中 的class属性值关联到Spring中创建的Action对象访问到此类 2.Struts2中a转载 2015-06-08 15:28:07 · 462 阅读 · 0 评论