Examples of BaseExportView


Examples of org.displaytag.export.BaseExportView

     * @throws JspException generic exception
     */
    protected int doExport() throws JspException
    {

        BaseExportView exportView = null;
        boolean exportFullList = this.properties.getExportFullList();

        if (log.isDebugEnabled())
        {
            log.debug("[" + getId() + "] currentMediaType=" + this.currentMediaType);
        }

        boolean exportHeader = this.properties.getExportHeader(this.currentMediaType);

        exportView = ExportViewFactory.getView(this.currentMediaType, this.tableModel, exportFullList, exportHeader);

        String mimeType = exportView.getMimeType();
        String exportString = exportView.doExport();

        String filename = properties.getExportFileName(this.currentMediaType);
        return writeExport(mimeType, exportString, filename);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.