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>下有<action>标签,<action>下有<result>标签。

  4、然后就是jsp页面。

posted on 2012-10-15 17:37  yoosha  阅读(169)  评论(0编辑  收藏  举报

导航