SoFunction
Updated on 2025-04-07

jsp include references non-local directory web page implementation code

jsp include references non-local directory web page implementation code

Updated: February 1, 2013 17:18:23 Author:
The emergence of include facilitates reference between files and reduces the difficulty of development. Its common usage is to quote directories at the same level. This article mainly introduces the reference of non-local directory web pages. If you do not encounter any citations in this case, please refer to it. Perhaps this article will be helpful to you.

Use relative paths
Suppose the current directory name is a and the target folder is b
(1) If b is the upper directory of a,

Copy the codeThe code is as follows:

<%@ include file="../"%>
 
(2) If b is the lower directory of a,
Copy the codeThe code is as follows:

<%@ include file="b/"%>
  • include quote
  • Directory of this level

Related Articles

  • A brief discussion on the differences and connections of JSP serverlets

    Below, the editor will bring you a brief article on the differences and connections of JSP serverlets. The editor thinks it is quite good, so I will share it with you now and give you a reference. Let's take a look with the editor
    2017-01-01
  • Simple example of SpringMVC program

    This article mainly introduces relevant information about simple examples of SpringMVC program. Friends who need it can refer to it.
    2017-06-06
  • Java removes html tags. You must first remove the double quoted regularity

    Java removes html tags. The implementation method of double quotes must be removed first. The code is as follows
    2008-09-09
  • jsp Hibernate batch update and batch delete processing code

    Batch update refers to updating large batches of data in a transaction, and batch deletion refers to deleting large batches of data in a transaction.
    2008-11-11
  • 5. Read HTTP request header

    5. Read HTTP request header...
    2006-10-10
  • Summary of hibernate update data method

    It cannot be used directly because it uses ID as the primary key and must query the ID to update. . .
    2008-11-11
  • jsp servlet javaBean background pagination instance code analysis

    This article mainly analyzes the jsp servlet javaBean background pagination example code for you in detail, which has certain reference value. Interested friends can refer to it.
    2016-10-10
  • In-depth analysis of JSP and Servlet's handling of Chinese

    In-depth analysis of JSP and Servlet's processing of Chinese...
    2006-10-10
  • java SOAPHEADER's web service

    In the client request that requires java code in the business, I noticed that I need to send SOAPHEADER, and write the solution here.
    2008-12-12
  • jsp SmartUpload Chinese garbled problem solved

    This article mainly introduces the solution to the problem of garbled Chinese in SmartUpload in jsp. It is more practical. Friends who need it can refer to it.
    2016-06-06

Latest Comments