简体   繁体   中英

How to Include a HTML file outside my web-application into a JSP inside my application

I have a HTML Page at a Web Publisher whose content i want to load in a JSP inside my web application. I have tried JSP:Include action and Include directive but both of them seem to take only relative path. I cannot have a local copy of that html file because that is subject to changes in future and i need to include it dynamically. How to include a file using an absolute path?

The JSTL c:import taglib allows you to import a file from any url, http:// or file://. See http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/c/import.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM