• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why my picture always appear (X) until I do a refresh

 
Yanbing Yu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why some picture appear like X sign when first load of my page I store them in a folder not a db and I have to press F5 to make them appear.And i user the Linux System not windows,and the jsp server is Resin-2.1.13.When i get rid of the cach of my ie(MS ie6.0) and visit my jsp the picture appear X again,i should refresh the page again. i had tried to user these codes below:
<%
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
%>
it's not avail.
i also use the "getContextpath" take place of the absolute path of the image ,but it can't get well.
it's really awful bother me! for anyone user MS ie visit my site at first time ,the X will appear ,they would take it granted that the site is bad.
why this happens?How can i resolve it.

thanks!
 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ruby,

It may be your browser settings (in which case visitors to your site would know no different). Check under Tools => Internet Options => Temporary Internet Files => Settings and check that you have neither of the "Every" options selected. Ideally it should be "Automatically".

I hope that clears up your problem as, if not, I'm afraid I've no idea.

Jules
 
Yanbing Yu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank u Julian Kennedy.
this problem had not been cleared up.i can't let client to modify their setting of ie.whatmore,i had tried the way :=>Internet Option=>Setting=>Check,it can't work well.
Is it the problem of the Linux Server'setting?
 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Ruby, I didn't understand that.

Are you saying that your IE caching is set to "Automatically" or "Never" and you still get the problem? Or did that make it go away?

I know you can't determine what your users do, but that's really up to them.

Jules
 
Yanbing Yu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i still get the problem,i had tried to set my IE caching to "Automatically" or "Never" and i still get the problem.i have no other good ideaes!
 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably a stupid question, but have you tried restarting the JSP container? How about setting up your app again under a different app context and seeing if you still get the problem?

Jules
 
Yanbing Yu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot ,Julian Kennedy.i had resolved it in a not proper way.i judge the client'cookies ,if the user is first visit my site ,the index page refreshes at once ,if not the index page will not refresh.The problem may be the speed of browing the page at first time.It can fix the problem temporary.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!