CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Java

 export to file (CCS3/Jsp)

Print topic Send  topic

Author Message

Posts: 3
Posted: 12/20/2007, 3:27 AM


I created a button, when users press the button, the page will export some data to a file format and download, I write some codes for server onclick event, it works, but it still has redirect exception on server log.

code example:
page.getResponse().addHeader("Content-Disposition","attachment; filename=" + exportFileName + ";");
Writer w = page.getResponse().getWriter();
w.write( key_sb.toString() );
server error message:
2007/12/20 下午 01:36:55 org.apache.catalina.core.StandardWrapperValve invoke
Servlet.service() for servlet jsp threw exception
at org.apache.catalina.connector.ResponseFacade.sendRedirect(
at com.codecharge.components.Page.redirect(


View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.