1

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?

Ajay Soman
  • 1,631
  • 4
  • 19
  • 37
Nani
  • 11
  • 2
  • 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 Answers1

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