jsp include refers to the non directory page implementation code

  • 2020-06-01 10:47:25
  • OfStack

Take a relative path
Assume the current directory is called a and the destination folder is b
(1) if b is the parent directory of a,

<%@ include file="../xxx.jsp"%>

(2) if b is a subdirectory of a,

<%@ include file="b/xxx.jsp"%> 

Related articles: