• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Problem in using "exportParameters" in struts2

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends I am creating my application using Struts2 and JasperReports.
I have created PDF files using Action class itself.

Here is my Struts.xml file




Here i want to save my PDF file on my dream destination.For that i am using exportParamMap.
http://struts.apache.org/2.x/docs/jasperreports-plugin.html
As per documentation we can use "JRExporterParameter" by passing values into Map.

In my Action class i am using following code to populate my Map.



By doing that my PDF is getting generated but i am not able to retrieve that file on destination i mentioned.
I am using the same parameters for creating conventionally and in that case it is getting generated at desired place.

I think there might be some issue while populating Map.

If you have any idea please let me know.

Thanks in advance
Rushabh
 
Rushabh Vashi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rushabh Vashi wrote:Hi friends I am creating my application using Struts2 and JasperReports.
I have created PDF files using Action class itself.

Here is my Struts.xml file




Here i want to save my PDF file on my dream destination.For that i am using exportParamMap.
http://struts.apache.org/2.x/docs/jasperreports-plugin.html
As per documentation we can use "JRExporterParameter" by passing values into Map.

In my Action class i am using following code to populate my Map.



By doing that my PDF is getting generated but i am not able to retrieve that file on destination i mentioned.
I am using the same parameters for creating conventionally and in that case it is getting generated at desired place.

I think there might be some issue while populating Map.

If you have any idea please let me know.

Thanks in advance
Rushabh

 
reply
    Bookmark Topic Watch Topic
  • New Topic