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

skoropada

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 skoropada

  1. Hi, I have a problem with set result type jasper because I dont know where should I do that (with using Spring to create action classes) In my struts.xml I have set objectFactory to spring. In my action class I have @Results({ @Result(name = "success", type = "jasper", params = { "location", "/jasper/our_compiled_template.jasper","dataSource", "rachunek", "format", "PDF" }) }) public class ReportGenerateAction extends ActionSupport { ... } In applicationContex.xml is <bean id="reportGenerate" scope="prototype" class="pl.serafinek.action.ReportGenerateAction"/> When I add <package name="default" extends="struts-default"> <result-types> <result-type name="jasper class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> </result-types> </package> it still doesn't work for me - cos of Spring ?.The result is: The Result type [jasper] which is defined in the Result annotation on the class [class pl.serafinek.action.ReportGenerateAction] 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 [pl.serafinek.action#convention-default#] - [unknown location] What is wrong in my configuration ? Kris
  2. Hi, I have the same problem How do you resolve it ?
×
×
  • Create New...