I use a "relative path" URL, such as:

../images/imagename.gif

where "images" is directory that the http server can serve from.


----- Original Message -----
From: Mukul Gandhi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 21, 1999 8:29 AM
Subject: Re: Images in html files produced by servlets


> I once got this problem. I had written the absolute path of the image file
> in IMG tag. Something like this -
> out.println("<IMG SRC='file:///C:\somedirectorypath\imagename.gif'>")
where
> out is PrintWriter object. This worked with me.
>
> I could,nt find the normal soln as ur expecting. I know my code will not
be
> portable, as on unix C:\ would not be recognised. Can somebody tell the
> better way ?
>
> -mukul
>
> At 04:41 PM 7/21/99 +1000, you wrote:
> >Hi,
> >
> >Thanx for replying. It is not solving the problem..
> >
> >My JavaWebServer is running on Windows 95 machine at port 8080
> >
> >I used following combinations..
> >
> ><IMG SRC="http://127.0.0.1:8080/images/image.gif">
> >
> ><IMG SRC="images/image.gif">
> >
> >where images/image.gif is present in Javawebserver1.1.3 (root folder),
and my
> >D:..
> >
> >Still the problem is not solved..
> >
> >Any further help???
> >
> >Thanx
> >Ritu
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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