Results 1 to 2 of 2

Thread: Spring and Jasper Reports subreporting issue

  1. #1
    Join Date
    Apr 2005
    Posts
    6

    Default Spring and Jasper Reports subreporting issue

    I am trying to integrate jasper reports with our application. Spring is our main framework and use the Spring MVC for view processing. I have a particular issue with subreports as they don't seem to show up when I use a collection as my datasource. If I use a JDBC datasource the subreports show up on the screen. Here is how i have included the sub reports in my report view:

    <subreport isUsingCache="true">
    <reportElement
    x="0"
    y="0"
    width="530"
    height="20"
    key="subreport-1"/>
    <subreportExpression class="net.sf.jasperreports.engine.JasperReport">< ![CDATA[$P{headerView}]]></subreportExpression>
    </subreport>


    I have a parameter called headerView at the top.

    I have a bean to display this as shown:


    <bean id="accountSummaryView" class="org.springframework.web.servlet.view.jasper reports.JasperReportsMultiFormatView">
    <property name="url" value="/WEB-INF/reports/classicRenameMod.jasper"></property>
    <property name="reportDataKey" value="accountSummaryBeansList"/>
    <property name="subReportUrls">
    <map>
    <entry key="headerView" value="/WEB-INF/reports/awardHeader.jasper"/>
    </map>
    </property>

    </bean>

    The subreport as of now just has a few static text fields with no datasource attached to it, but does not seem to show up in my view. Any help would be widely appreciated.
    Regards,
    Sudarshan.

  2. #2
    Join Date
    Apr 2005
    Posts
    6

    Default

    Has anbody used multiple lists to get reports out using sub reports in jasper reports with spring framework involved??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •