File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Problem in using Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in using "exportParameters" in struts2" Watch "Problem in using "exportParameters" in struts2" New topic
Author

Problem in using "exportParameters" in struts2

Rushabh Vashi
Greenhorn

Joined: Apr 27, 2011
Posts: 20
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

Joined: Apr 27, 2011
Posts: 20
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in using "exportParameters" in struts2
 
Similar Threads
datasource for jasper report in struts.xml with struts2
migration to Struts2
Struts2: Test action classes
downloading a file struts2
Struts2 + JSON : Getting Class Not Found Error