Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image display problem in IE 6.0 using JSP/Servlet app.............

Status
Not open for further replies.

abc73

Programmer
Apr 28, 2004
89
US
I have an application that gets an images from the DataBase and displays it in a browser. Everything worked fine in IE 5.5, but recently I upgraded to IE 6.0 and now the images are not shown. If I use the IE 5.5 it works fine. Is there any issue with IE 6.0. I have JSP page and in a loop calls the servlet that gets one image at a time and displays it in a browser. Following is a sample snippet of code:

Code:
%>
........................
//for loop that iterates through an array of image names passing one name at a time to servlet to fecth the image
//from DB
<tr>
    <td align="center" width="90%">
	<img src="servername:port/contextpath/servlet/show?name=<%= img[i] %> width=640>
    </td>
</tr>
...........................
<%

My code works fine in older brosers but somehow in new browser I don't see an image but just red "X". Any work around or how to fix this. I'll really appreciate for any help.

Thanks.
 
I have that in the code just a typo here. Folloing is correct

Code:
<img src="[URL unfurl="true"]http://servername:port/contextpath/servlet/show?name=<%=[/URL] img[i] %> width=640>
[code]

thanks
 
You'll probably want either the HTML forum or the JSP/Servlet Forum695.
This forum is for pure Java issues.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top