Depankar Neogi wrote:
> If I invoke my html file as follows -
> http://myhost:port/myfile.html
> I see both text and gifs.
>
> If I involke as -
> http://myhost:port/servlets/ViewFile/myfile.html
> I see only the text and not the gifs. (I have tried to put a copy of
> the gif files both at htdocs dir where the html file is and at servlets
> dir too.)
> Any clue how I can send both text and image back to the client from a
> servlet ?
>
> Thanks in advance
>
> -Depankar
Have you tried coding the html file with fully qualified url's?
i.e.. http://hyhost.com/images/myimage.gif.
There seems to be a problem with generating html from a servlet in that the
servlet directory is the base document directory, but usually is only
accessible for executables.
If you want to be more generic, you can try a root relative path.
i.e.. /images/myimage.gif.
this doesn't seem to always work.
ed.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]