1

我已经设置了加载页脚和页眉的 web.xml 文件,但我想分离我的登录页面以在没有页眉页脚的情况下加载它。有谁知道我怎样才能做到这一点。

这是我的 Web.xml 文件配置。我正在使用 Netbeans

 <jsp-config>
    <jsp-property-group>
        <description>JSP configuration for the store front</description>
        <url-pattern>/index.jsp</url-pattern>
        <url-pattern>/WEB-INF/view/*</url-pattern>
        <url-pattern>/WEB-INF/jspf/error/*</url-pattern>
        <include-prelude>/WEB-INF/jspf/header.jspf</include-prelude>
        <include-coda>/WEB-INF/jspf/footer.jspf</include-coda>
    </jsp-property-group>
    <jsp-property-group>
        <description>JSP configuration for the admin console</description>
        <url-pattern>/admin/index.jsp</url-pattern>
        <url-pattern>/admin/login.jsp</url-pattern>
        <url-pattern>/admin/error.jsp</url-pattern>
        <include-prelude>/admin/jspf/header.jspf</include-prelude>
        <include-coda>/admin/jspf/footer.jspf</include-coda>
    </jsp-property-group>
</jsp-config>
4

1 回答 1

1

创建一个没有include-preludeinclude-coda的新组

<jsp-property-group>
    <display-name>Login</display-name>
    <url-pattern>/login/*</url-pattern>
    </jsp-property-group>
</jsp-config>
于 2013-03-10T15:39:02.720 回答