• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

datasource for jasper report in struts.xml with struts2

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am trying to run jasper report from Struts2. I am using embeded sql in my jasper report as the datasource.

In the STRUTS.xml file, I define the action as following ( This is something I found in the web, just use it as an example).

My question:

Since I am using embed sql defined in my jasper report as datasource. How do I specify the value for the param "dataSource" here in STRUTS.xml?
Any help is greatly appreciated !!

<package name="default" namespace="/" extends="jasperreports-default">
<action name="myJasperTest">
<result name="pdf" type="jasper">
<param name="location">/jasper/our_compiled_template.jasper</param>
<param name="dataSource">myList</param>
<param name="format">PDF</param>

<param name="contentType">application/pdf</param>
<param name="contentDisposition">filename="document.pdf"</param>


Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic