Since you have included the HTML in a JSP the code src="myimage.jpg" will
ask the webserver to fetch this image from the directory in which the JSP
sits. So does the .jpg file, .jsp file and .html file all sit in the same
directory on your webserver's hard drive? You could use a more explicit
path to the actual .jpg file.
Burr
[EMAIL PROTECTED]
----- Original Message -----
From: fred Java <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 2:10 PM
Subject: Help: Include a HTML file with image
> Dear All,
> Could you give me some help on the following problem please?
> I have a jsp file include an html page. All worked well until I have a
image
> in the HTML page. I can not see the image (jpg file) from the JSP page (I
> only can see the document in the HTML page without the image). if I
display
> the HTML from outside of the JSP page, I can see everything (with the
> image). Could you give me some help please?
>
> Best Regards,
>
> Fred
>
> Some code I used:
>
> In JSP:
> <%@ include file="myhtml.html" %>
>
> In HTML:
> <TABLE width="100%">
> <TBODY>
> <TR align=middle vAlign=center>
> <TD align=left vAlign=center><IMG alt="My Home Page" border=0
> height=151 src="myimage.jpg" width=144></TD>
> </TBODY>
> </TABLE>
> ... other thing in HTML part, which can be seen from JSP page.
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets