JSP Includes HTML file residing outside WebApp

From: Oleg Konovalov (olegkon_at_verizon.net)
Date: 03/27/04


Date: Sat, 27 Mar 2004 05:13:03 GMT

Hi,

We have an application which is a Java/JSP security wrapper to
control access to the contents of the external corporate training Web site
(courses).
It is a Java/JSP/Struts application which was originally
developed on Windows and deployed on Tomcat4.1.

As of today, the contents (HTML/Flash) is residing inside
the application itself: (webapps)/myApp/myData

We found out that the client is planning to deployed
in a strict secure hosting environment (Unix, Weblogic7, iPlanet web
server).
One of their requirements is that Application (JSP, Java classes,
Javascript)
will reside on AppServer, and all static contents (HTML, Flash, GIFs) on Web
server.
So now we need to separate myData from myApp (they will be on the same
level).
The way it is built now is that for each course has a JSP file (say,
course1.jsp)
which has a line: <%@ include file="course1.html" %>

The problem is that now HTML files will be outside of application
("/myData/courses/course1.html"),
but JSP pages still inside of the Web application.

We tried to provide a relative path (e.g. "/myData/courses/course1.html",
 or "../myData/courses/course1.html"),
full URL ("http:/www.mycomp.com/myData/courses/course1.html"),
but include doesn't work - getting exceptions.

What would you recommend to include inside JSP the HTML file residing
outside of Java application ?

Thank you in advance,
Oleg.
cell: 609-933-4906



Relevant Pages

  • JSP Includes HTML file residing outside WebApp
    ... We have an application which is a Java/JSP security wrapper to ... (courses). ... The way it is built now is that for each course has a JSP file (say, ... The problem is that now HTML files will be outside of application ...
    (comp.lang.java)
  • JSP Includes HTML file residing outside WebApp
    ... We have an application which is a Java/JSP security wrapper to ... (courses). ... The way it is built now is that for each course has a JSP file (say, ... The problem is that now HTML files will be outside of application ...
    (comp.lang.java.help)
  • Re: Netbeans File Organization - Web Project
    ... I understand and concur for .java / class files.. ... and .jsp files, not in managing .java and class files. ... build/web/" (can I call this the build folder?), ... Generally the .jsp and html files in /build/web/ are always up to ...
    (comp.lang.java.programmer)
  • Re: Including jsps/html files from remote host into our JSP
    ... Our app server is Tomcat 4.1.30, and JSP version is JSP 1.2 ... Venkatesh wrote: ... We have few JSP files and HTML files ... host or on different host). ...
    (comp.lang.java.programmer)