|
From: Rob H. <rob...@in...> - 2006-02-03 12:53:24
|
Chris, Can you raise a bug for this on JIRA please? Regards, Rob Chris Holman wrote: > Hi, > > I've just started using JasperReports in Spring, and came across a problem which > I would like to suggest a fix. > > I would like to chain the JasperReportsViewResolver(JRVR) before my main JSP > resolver. I would expect the JRVR to pass control to the JSP resolver if it > cannot find the requested .jasper file, but it actually throws an exception. > This means that the JRVR in its current form cannot be used in a Resolver > Chain. > > To make it Resolver Chain friendly, it must return a null view on fail. I have > made the assumption that if the file doesnt exist, this is a failure. I have > made some minor modifications as follows: > > 1. Added JRVR.createView(String, Locale) to overload its abstract parent. This > calls loadView() but catches the exception thrown in > AbstractJaspperReportsView.loadReport(Resource), which returns null. > 2. In AbstractJaspperReportsView.loadReport(Resource), I changed the exception > thrown for the caught IOException as I needed to differentiate between the two > catch statements. > > Hope this is of use to someone in the future. > Regards, > Chris > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |