did you use out.flush() or out.close()? Also, since you didn't specify a
path, it's assuming you want it co call the servlet to retrieve the .gif
image. Is your servlet prepared to furnish it? You might try something
similar to ../images/test.gif.
(*Chris*)
----- Original Message -----
From: Sudhir Kumar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 30, 1999 5:51 AM
Subject: Can I load image ?
> I am trying to load an image in my page from a servlet.
>
> ...
> PrintWriter out = res.getWriter();
> out.println ("<img src=\"test.gif\">");
> ...
> It never appears as an image in the browser when I invoke the servlet. I
> tried with servletrunner as well as Apache Jserv.
> Could someone enlighten me what I am doing wrong?
>
> thanks,
>
> - Sudhir
>
> --
> /**
> * Sudhir Kumar
> * CyberCash India Pvt. Ltd. (O) 91-80-552 5660
> * 82/2A M.R Gardens, 3rd A Cross (H) 91-80-528 5975
> * 18th Main, 6th Block, Koramangala, Bangalore - 560025
> *
> * Any intelligent fool can make things bigger, more complex and
> * more violent. It takes a touch of genius-and a lot of courage
> * to move in the opposite direction.
> * -- Albert Einstein
> */
>
>
___________________________________________________________________________
> 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