At 10:49 AM 3/10/99 -0700, you wrote:
>I'm hoping that there is a simple answer to the following:
>
>I need to be able to have my servlet generate a dynamic HTML file that
>references static elements such as a javascript file and an image.  Is there
>a way to use relative paths to specify where to retrieve these items?  Or do
>I have to write a servlet that handles the request of the static files?  I
>have the Servlet book by Jason Hunter and he has a sample servlet that can
>be used for the retieval of static files - do I have to use something like
>this in order to have this mix of dynamic and static html?
>

We use relative paths to access files (gifs, jpegs, etc) with Apache and
Jserv.  Our URL is http://host/servlet/servletname and the html files
returned reference their images as "../images/pic.gif".  Our images
directory in located in the Apache root directory and the images are
successfully returned.

Bob

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to