Jump to content
We've recently updated our Privacy Statement, available here ×

quentinb

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by quentinb

  1. Hi All. I need help using Jasper Reports with Struts2 annotations. I keep getting this error: Please Help!! Unable to load configuration. - [unknown location] Caused by: The Result type [jasper] which is defined in the Result annotation on the class [class za.co.credicor.crud.regions.action.RegionsReport] or determined by the file extension or is the default result type for the PackageConfig of the action, could not be found as a result-type defined for the Struts/XWork package [za.co.credicor.crud.regions.action#convention-default#] - [unknown location] Code:Inside My Class:@Results({ @Result(name="success", type="jasper", params={"location","/pages/jasper/our_compiled_template.jasper","format","PDF"}) }) try { JasperCompileManager.compileReportToFile( "/pages/jasper/our_jasper_template.jrxml", "/pages/jasper/our_compiled_template.jasper"); } catch (Exception e) { e.printStackTrace(); return ERROR; }Inside struts.xml <package name="default" extends="struts-default"> <result-types> <result-type name="jasper" class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> </result-types> </package>
×
×
  • Create New...