pdf « Excel « JSP-Servlet Q&A

1. Exporting jsp tables to excel, word, pdf    stackoverflow.com

Can anyone suggest me any library/jar files which I can use to export my table to excel/pdf/word. Please tell me if there is any library by which I can create reports in ...

2. ContentType is application/pdf but it still generates Excel sheet    stackoverflow.com

I am using the following code to generate a PDF document from a JSP, but it generates an Excel sheet.

<%@ page buffer="7024kb" %>
<%@ page contentType="application/pdf"%>
  String reportType=request.getParameter("reportType");
  String fileName=reportType;

3. Save a webpage as PDF or Excel file    coderanch.com