You should use the absolute path for images in websites created by servlets!

e.g. <img src="http://www.anywhere.com/logo.gif">

-----Urspr�ngliche Nachricht-----
Von: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Im Auftrag von
Manish Bhatnagar
Gesendet: Mittwoch, 31. Mai 2000 15:04
An: [EMAIL PROTECTED]
Betreff: Image not visible
Wichtigkeit: Hoch


Hi!

I am creating a html page from a servlet.... I wish at add an image,
clicking on which connects to a particular URL. Where shall I put the
image (I'm using Java Web Server2.0) "xyz.bmp" so that when a client
machine accesses my machine (which happens to be the server)... the
image is visible to the user...

Here's the code...
out.println("<td width=\"100%\" height=\"78\" valign=\"middle\"
align=\"center\"><a href=\"http://www.someURL.com\"><img
src=\"\\\logo.bmp\" width=\"50\" height=\"63\"
alt=\"Hello\"></a></td>");

Suggestions welcome!

--Manish--

--
Obstacles are things a person sees when he takes his eyes off his goal.

  -E. Joseph Cossman

___________________________________________________________________________
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