Package de.businesscode.bcdui.web.wrs
Class ExcelExportServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- de.businesscode.bcdui.web.wrs.ExportServlet
-
- de.businesscode.bcdui.web.wrs.ExcelExportServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.businesscode.bcdui.web.wrs.ExportServlet
maxRowsDefault
-
-
Constructor Summary
Constructors Constructor Description ExcelExportServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected java.lang.String
getMaxRowsUserPermissionType()
void
init(javax.servlet.ServletConfig config)
-
Methods inherited from class de.businesscode.bcdui.web.wrs.ExportServlet
getMaxRows
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classExportServlet
- Throws:
javax.servlet.ServletException
-
getMaxRowsUserPermissionType
protected java.lang.String getMaxRowsUserPermissionType()
- Overrides:
getMaxRowsUserPermissionType
in classExportServlet
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
-