Hi !

Try...
out.println("<BODY BACKGROUND=\"/modetxt.gif\" LINK=\"black\"
LINK=\"black\">");

to give the path relative to the server name.

Gautam

>From: NitinS <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Servlet problem for displaying image
>Date: Wed, 1 Sep 1999 10:51:41 -0700
>
>Hi,
>I am generating the HTML page from Servlet using "out.println" statement
>but
>when I set the background image of this page
>like
>
>out.println("<BODY BACKGROUND=\"modetxt.gif\" LINK=\"black\"
>VLINK=\"black\"
> >");
>
>I have copied image files in servlet directory  and public_html in Java Web
>Server 1.1.3 but this doesn't help me to get the image.
>
>
>
>I tried
>
>
>
>out.println("<IMG SRC=\"bkg_wb.GIF\" WIDTH=\"990\" HEIGHT=\"10\"
>ALIGN=\"BOTTOM\" BORDER=\"0\"></P>");
>
>out.println("<P ALIGN=\"CENTER\"><IMG SRC=\"importsoft.gif\" WIDTH=\"375\"
>HEIGHT=\"60\" ALIGN=\"BOTTOM\" BORDER=\"0\"></P>");
>
>out.println("<P ALIGN=\"CENTER\"><IMG SRC=\"bkg_wb.GIF\" WIDTH=\"990\"
>HEIGHT=\"10\" ALIGN=\"BOTTOM\" BORDER=\"0\"></P>");
>
>
>
>this code also but I am unable to load any image.
>
>
>
>Please help me in this case.
>
>
>
>
>
>thanks & regards.
>
>
>
>Nitin
>
>
>
>
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
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