Hi,
I am using serlvet URL to display image using IMG tag as below
<img src="/register/logoimages?action=displayuploaded"/>
Where
1. /register/logoimages is the mapped servlet URL.
2. action=displayuploaded will display the uploaded image.
I have a JSP page 1 which provide option to upload a image file.
When page 1 is loaded first time, servlet /register/logoimages is invoked and executed (first call to servlet) to try to display image. As image is not yet uploaded by user image is not displayed. Fine.
Now, When user upload image on page 1, user is directed to same page 1 and uplaoded image is to be displayed using above IMG tag which invokes servlet /register/logoimages (second call to servlet)
This is working fine on IE 8 browser and uplaoded image is displayed.
Problem:
This does not work on Mozilla (16.0.2) and IE 8 browser on other machine (works only on my machine IE 8 browser)
In Mozilla (16.0.2), the uploaded image is not displayed. When I check the logs servlet /register/logoimages is not executed during second call (after uploading image).
When I check IE and Mozilla header content, below diffrence I found
IE8:
Accept=image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, */*
Cache-Control=no-cache
Mozilla (16.0.2):
Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Cache-Control= THIS IS NOT IN HEADER