• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

images included in JSP pages don't always load

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic