招聘管理系统之SiteMesh模板二---sitemesh模板中使用struts2标签

    此项目用到了struts2框架,在*.jsp中可以使用struts2的标签,但在模板中使用struts2标签就会出现异常。开始以为是struts2标签用的不规范,或者是和html标签冲突了,搞了好半天没搞定,慢慢发觉是sitemesh的问题。
   
     web.xml 配置如下
<filter>
        <filter-name>struts2-cleanup</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
    </filter>
    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
    </filter>
    <filter>
        <filter-name>struts</filter-name>
        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts2-cleanup</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

你可能感兴趣的:(apache,struts,项目管理,配置管理,招聘)