• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

images included in JSP pages don't always load

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some JSP pages where I am including images (the image name is retrieved from a database) using syntax such as:
<img src="<%= pictureFileName %>" >
This is done in a loop, running through an enumeration and retrieving various images for diaply in a table of images. The problem is that sometimes the images load and sometimes they don't. I know the images are available, since I can see them in the proper place in the directory and sometimes they are sent properly and appear. Why would they only load sometimes and not others. In a page with a bunch of pictures, I generally get about 3 or 4 that don't load, but never the same 3 or 4! Pressing refresh can even change which images are loaded properly!
I'm using Websphere 3.5.2. Is there something wrong with the File Serving Servlet and I need to change configurations?
Also, this was happening with my stylesheet that was linked in using:
%lt;link rel="stylesheet" href=...... >
Sometimes the page would appear using the stylesheet and sometimes not. I changed it so the stylesheet is included in place using a jsp:include and that fixed that problem.
It seems the server is just not sending all the content all of the time, but it is never consistent on what content it forgets to send!
Any help would be appreciated.
If you would like to see the application in action (it is a school project of an online auction website) email me and I'll send you the URL where it is deployed.
Darryl Gates
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if this makes any difference, I haven't experienced this problem using the Websphere Test Environment in Visual Age.
    Bookmark Topic Watch Topic
  • New Topic