Error in includign jspf

后端 未结 1 1973
时光说笑
时光说笑 2021-02-11 03:56

I want to make include jspf into index jsp page , these statements

<%-- any content can be specified here e.g.: --%>
<%@ page pageEncoding=\"UTF-8\" %&         


        
1条回答
  •  梦谈多话
    2021-02-11 04:35

    JSPF files are intented to be statically included by @include. Its source code becomes then literally part of the parent JSP file. This happens only once, during compiletime.

    <%@include file="/WEB-INF/jspf/Header.jspf" %>
    

    If you want a compiletime include with then just rename .jspf to .jsp. The source code will then be compiled once separately and its output will be generated and included during runtime. This happens then on every request.

    0 讨论(0)
提交回复
热议问题