FileServlet (BalusC's Solution) not showing save dialog in IE
I am currently creating a JSF application with Primefaces. I am serving files from a database and I am using BalusC's FileServlet solution found on his blog.
My issue is happening in IE. When I click the download link my browser flashes and nothing happens. It however works great in firefox.
I have tried changing the Content-Disposition header from "attachment" to "inline" just to see if it would have any diff开发者_运维技巧erence. It in firefox but again failed to do anything in IE.
Any help would really be appreciated. Thanks!
Here is the solution: http://balusc.blogspot.com/2007/07/fileservlet.html
Ensure that you're using standard JSF <h:outputLink>
or just plain HTML <a>
link to call it and not some JavaScript/Ajax-flavored PrimeFaces <p:commandLink>
or so. It needs to be a plain vanilla HTTP GET request, not a JavaScript/Ajax-controlled request.
精彩评论