----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

> I have been trying to run a servlet that simply generates a page with
> a background image. For example, the fragment of HTML generated
> by my servlet would be:
> 
>    ... <body background=myGif.gif> ...
> 
> The image file resides in the same directory as the servlet that
> generates
> this HTML. However, the path requested by the resulting GET access to
> the
> Apache server  is basically :
> 
>      GET /<zone of zervlet>/<name of servlet>/myGif.gif
> 
> But I always get a 404 back (file not found). How can I get the
> correct path
> to finally be placed in the GET using JServ?  Is it solvable via a
> JServ
> configuration change or via Java servlet re-programming or both?
you have to put you Images somewhere in your apache htdocs directory.
The pictures in you servlet directory are not mounted into /<zone of
zervlet>/<name of servlet>/myGif.gif. Put it somewhere and put the
completete URL in. It should work, but I don't know, if this is the only
solution.

Matthias

-- 
-------------------------------------
eMail:    [EMAIL PROTECTED]
Homepage: http://www.m-brantner.de
Tel.:     0621-1211776
-------------------------------------


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to