Results 1 to 2 of 2
- 11-19-2012, 07:45 AM #1
Member
- Join Date
- Nov 2012
- Posts
- 1
- Rep Power
- 0
Servlet URL from JSP IMG not invoked second time
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
- 11-19-2012, 10:40 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
Similar Threads
-
Get Invoked Methods BCEL
By Astrid in forum Advanced JavaReplies: 1Last Post: 05-18-2012, 05:56 PM -
enter the time zone offset to GMT and convert to current time
By Bonia in forum New To JavaReplies: 5Last Post: 02-29-2012, 10:07 AM -
JAVA Programmers Wanted - Full-Time and Part-Time Positions open
By javatrek2020 in forum Jobs OfferedReplies: 3Last Post: 08-23-2011, 12:46 PM -
Concurrent timers are not getting invoked for same timer info (Serializable object co
By Neeraj in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 12-31-2008, 02:20 PM -
Date/Time Servlet
By Java Tip in forum Java TipReplies: 0Last Post: 01-14-2008, 09:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks