Package de.businesscode.bcdui.web.wrs
Class ExcelExportServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
de.businesscode.bcdui.web.wrs.ExportServlet
de.businesscode.bcdui.web.wrs.ExcelExportServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
Servlet utilizing POI class to create xslx files
Note that Sylk and Cvs exports are much more efficient than this, i.e. less bandwidth consuming, faster and less memory consuming since they are streaming and a leaner format
Use this only, when needed, for example because you fill an Excel template or because you need UTF-8 chars. UTF-8 chars cannot be handled by csv or sylk.
The incoming request can be
a) A WrsContainer, having a combination of WrsRequest and Wrs data children
b) A single WrsRequest or Wrs document
in both cases, WrsRequest are executed on server side
It is possible to define an Excel file ('template') in templateLocationInWar or templateLocationInVfs and sheet name as target into which to fill the data in
- See Also:
-
Field Summary
Fields inherited from class de.businesscode.bcdui.web.wrs.ExportServlet
maxRowsDefaultFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.businesscode.bcdui.web.wrs.ExportServlet
getMaxRowsMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
ExcelExportServlet
public ExcelExportServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classExportServlet- Throws:
jakarta.servlet.ServletException
-
getMaxRowsUserPermissionType
- Overrides:
getMaxRowsUserPermissionTypein classExportServlet
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-