In reporting section of my application report is generated and contents are shown on jsp page, as part of requirement user wants to download report in form of both excel and pdf.
I got this thing work for excel by changing contenttype of jsp page as below
contentType="application/vnd.ms-excel"
However same thing for pdf is not working
这会起作用
response.setContentType("application/pdf");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.