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

public class ExcelExportServlet extends ExportServlet
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

    maxRowsDefault

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected String
     
    void
    init(jakarta.servlet.ServletConfig config)
     

    Methods inherited from class de.businesscode.bcdui.web.wrs.ExportServlet

    getMaxRows

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, isSensitiveHeader, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExcelExportServlet

      public ExcelExportServlet()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class ExportServlet
      Throws:
      jakarta.servlet.ServletException
    • getMaxRowsUserPermissionType

      protected String getMaxRowsUserPermissionType()
      Overrides:
      getMaxRowsUserPermissionType in class ExportServlet
    • doPost

      protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException