日期:2014-05-20 浏览次数:20857 次
<decorators defaultdir="/">
    <decorator name="frame" page="template.jsp">
        <pattern>/*</pattern>
    </decorator>
</decorators>
<!-- SiteMesh -->
    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>
            com.opensymphony.module.sitemesh.filter.PageFilter
        </filter-class>
    </filter>
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    
    <jsp-config>
        <taglib>
            <taglib-uri>sitemesh-page</taglib-uri>
            <taglib-location>
                /WEB-INF/sitemesh-page.tld
            </taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>sitemesh-decorator</taglib-uri>
            <taglib-location>
                /WEB-INF/sitemesh-decorator.tld
            </taglib-location>
        </taglib>
    </jsp-config>
        <action name="car" class="struts.action.Car_jsp_Action">
            <result name="success">car.jsp</result>
            <result name="input">car.jsp</result>
        </action>
 <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>*.jsp</url-pattern>
         <dispatcher>FORWARD</dispatcher>   
         <dispatcher>REQUEST</dispatcher>   
    </filter-mapping>