JSP PageContext. Include () method: include the file in the page

Grammar 1

include(String relativeUrlPath)

Example

<%@page language="java" pageEncoding="GBK"%>
  <%
     pageContext.include("/top.jsp");
   %>

Grammar 2

include(String relativeUrlPath,boolean flush)

Example

<%@page language="java" pageEncoding="GBK"%>
  <%
     pageContext.include("/top.jsp",true);
   %>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>