[英]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. 我在Web Publisher上有一个HTML页面,我想将其内容加载到Web应用程序内的JSP中。 I have tried JSP:Include action and Include directive but both of them seem to take only relative path.
我尝试了JSP:Include操作和Include指令,但是它们似乎都只采用相对路径。 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.
我无法获取该html文件的本地副本,因为将来可能会更改,因此我需要动态添加它。 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://. JSTL c:import标签库允许您从任何url,http://或file://导入文件。 See http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/c/import.html
参见http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/c/import.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.