如何在没有JSP的情况下加载特定页面,包括前奏和尾声 [英] How to load particular page without JSP include prelude and coda

查看:54
本文介绍了如何在没有JSP的情况下加载特定页面,包括前奏和尾声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了我的web.xml文件,该文件加载页脚和页眉,但是我想分开我的登录页面以不添加页眉页脚来加载它.有谁知道我怎么能做到这一点.

I have set up my web.xml file which loads footer and header but I want to separate my login page to load it without header footer. Does any know how can I achieve this.

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

Here is my Web.xml file configuration. I am using 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>

推荐答案

创建一个没有 include-prelude include-coda

<jsp-property-group>
    <display-name>Login</display-name>
    <url-pattern>/login/*</url-pattern>
    </jsp-property-group>
</jsp-config>

这篇关于如何在没有JSP的情况下加载特定页面,包括前奏和尾声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆