* @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);
}