JSP include reference non directory page implementation code

Time:2021-4-19

Using relative path
Suppose the current directory name is a and the destination folder is B
(1) If B is the superior directory of a,

Copy codeThe code is as follows:
<%@ include file=”../xxx.jsp”%>

 
(2) If B is a subdirectory of a,

Copy codeThe code is as follows:
<%@ include file=”b/xxx.jsp”%>

Recommended Today

Review of SQL Sever basic command

catalogue preface Installation of virtual machine Commands and operations Basic command syntax Case sensitive SQL keyword and function name Column and Index Names alias Too long to see? Space Database connection Connection of SSMS Connection of command line Database operation establish delete constraint integrity constraint Common constraints NOT NULL UNIQUE PRIMARY KEY FOREIGN KEY DEFAULT […]