Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent! Strange problem when calling jasper report in STRUTS  RSS feed

 
Michael Zohner
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Urgent! Strange problem when calling jasper report from STRUTS
Hi,

I have a problem when calling a jasper report from Struts and I have no idea what I am doing wrong.

I get a "java.lang.IllegalStateException: Cannot forward after response has been committed" exception!

My code is below...
Action:
// I pass a list with one map to this "prepareReportJrxml" method

AbstractBaseReportBean:


exportReportPlainXls method:


at this point I get the error:
AbstractBaseReportBean:


I dont know how to eliminate this error.
I think, this is also the reason why no data will be passed to the excel sheet (I think).

Thanks a lot ! cheers
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/EaseUp

Actions that write their own response should return "null" (not an ActionForward) so the framework doesn't attempt to continue processing the request.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!