----------------------------------------------------------------
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!!!
----------------------------------------------------------------

> I have been trying to run a servlet that simply generates a page with
> a background image. For example, the fragment of HTML generated

Just make sure that the path to the image that you encode in your html is
the path AS SEEN BY THE WEB SERVER.  If your web server cannot get to the
path in which the image is stored, you won't be able to serve it up.
Although you probably do not have JServ configured this way, it is possible
to run JServ on a machine other than your web server.  In this sort of
environment you would have to store the gif and the servlet on separate
machines (assuming you don't have a shared file system mounted on both).

Another alternative would be to write an imageserver servlet that returned
the gif.  But, of course, that's more pain than it's worth.

Dan


--
--------------------------------------------------------------
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