Can I use either the include directive or include tag to bring in a static HTML file that is residing on either a different server or on the same machine but outside the directory structure of the web server?

Bozidar Dangubic

on a different machine, you can include by opening a URL connection and piping the results of the request to this URL connection in your JSP (note that include directive and tag do are not used for this, java code is). as far the same server outside directory structure as far as I know you cannot do it, but if this html file is in the directory tree of another web application, you can also open URL connection to it and pipe the output into your JSP file. as you can see, there is no simple way to do this as far as I know although I have not done extensive research on it.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact