org.dbforms.servlets
Class JasperReportServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dbforms.servlets.base.AbstractServletBase
org.dbforms.servlets.reports.AbstractReportServlet
org.dbforms.servlets.JasperReportServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class JasperReportServlet
- extends AbstractReportServlet
This servlet starts a JasperReport.
- Author:
- Henner Kollmann
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JasperReportServlet
public JasperReportServlet()
getReportFileExtension
protected String getReportFileExtension()
- DOCUMENT ME!
- Specified by:
getReportFileExtension
in class AbstractReportServlet
- Returns:
- DOCUMENT ME!
compileReport
protected void compileReport(ServletContext context,
String reportFile)
throws Exception
- DOCUMENT ME!
- Overrides:
compileReport
in class AbstractReportServlet
- Parameters:
context
- DOCUMENT ME!reportFile
- DOCUMENT ME!
- Throws:
Exception
- DOCUMENT ME!
processReport
protected ReportWriter processReport(String reportFileFullName,
AbstractJRDataSource dataSource,
ServletContext context,
HttpServletRequest request,
HttpServletResponse response)
- generates a report.
- Specified by:
processReport
in class AbstractReportServlet
- Parameters:
reportFileFullName
- filename of report to process
reportHTTPServletRequest generated by getReportFile!
getReportFile should be called before fetching data, so that
error handling of report not found e.g. could be processed first!dataSource
- data for the reportcontext
- ServletContextrequest
- HTTPServletRequestresponse
- HTTPServletResponse
- Returns:
- DOCUMENT ME!
Copyright © 2002-2006 DbForms. All Rights Reserved.