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?
Asked
Active
Viewed 1,173 times
1
-
You can't call a JSP that is on another server - calling a JSP from external server returns the *generated* page (HTML) - not the source code! Just copy the JSP to your server and include it using a relative path. – Nir Alfasi Sep 24 '12 at 21:27
1 Answers
1
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

Assen Kolov
- 4,143
- 2
- 22
- 32
-
Good to hear it helped. Maybe you could also accept the answer or upvote it? – Assen Kolov Sep 29 '12 at 16:32