2012年10月15日

Struts2

摘要: 1、拦截器<filter>以及<filter-mapping>标签。在web.xml文件中配置。 2、Action。Struts2中的Action是整合了Struts1的Action和ActionForm。该类继承了ActionSupport类,包含public String execute(){}方法,该方法返回的是一个字符串,该字符串与之后的struts.xml文件中<action>标签下的<result>标签的name属性值应该保持一致,即即将跳转的页面。 3、之后是配置struts.xml文件,<package>下有<a 阅读全文

posted @ 2012-10-15 17:37 yoosha 阅读(169) 评论(0) 推荐(0) 编辑

导航