Jump to content
Changes to the Jaspersoft community edition download ×

streaming xls and pdf reports in struts...


Recommended Posts

By: brertiger - aubrertiger

streaming xls and pdf reports in struts...

2006-05-31 14:06

I am attempting to export a report in xls and pdf formats and stream the created report straight to the browser (IE). I've run into a couple of problems...

 

1. I'm using a struts framework, so once I've used my outputStream for the streaming of the reports, I cannot use it for my actionMapping.findforward. Thus, the parent page is stuck.

 

2. so, I attempted to embed a url to the method which creates the stream in a popup window. this works with a pdf yet not with excel. I don't know why??? Internet Explorer makes two request in order to load the pdf. first it gets the contentType. then, gets the actual report data. Yet, when I'm attempting to load the excel, it makes one attempt to get the excel stream and of course fails.

 

Note: I'm also having to use a modalDialog window for the popup.

 

Is there something I'm missing about the <embed> tag and excel files?? or maybe, there's a better solution to getting around the "getOutputStream() has already been called" problem when using struts and Jasper Reports????

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...