Avatar of dkim18
dkim18

asked on 

IE doesn't Invoke servlet in iframe

Hi Experts,

I am trying to view PDF in IE using PDF.js(Mozilla) and IE gives different behavior compare to FF.
I debugged and found out that if I put path to another file that invokes servlet there instead of direct url in iframe, IE doesn't invoke servlet.
 
For example, this works in both IE and FF.
<iframe width="900" height="300" src="/abc/efg/pdfservlet" id="pdf_iframe"></iframe>
 
And this is web.xml
<servlet>
    <servlet-name>pdfservlet</servlet-name>
    <servlet-class>org.aaa.bbb.PDFServlet</servlet-class>
  </servlet>
 
 
But this only works in FF not IE. IE just doesn't update PDF content.(The PDFServlet doesn't get invoked.)
 
<iframe width="900" height="300" src="/.../.../viewer.jsp" id="pdf_iframe"></iframe>

How do I fix this in IE10/IE11?

thanks in advance
Java EEJSPHTML

Avatar of undefined
Last Comment
rrz

8/22/2022 - Mon