me_vsoundar Posted May 14, 2010 Share Posted May 14, 2010 Hello,I am using the jasper reports in struts2 framework. Consider, I've an action class which contains the dataSource(i.e a list) and the necessary parameters...In my struts.xml like <action name="masterAction" class="real.MasterAction"> <result name="SUCCESS" type="jasper"> <param name="location">/page/DspGrpBasedReport.jasper</param> <param name="dataSource">plist</param> <param name="format">PDF</param> </result> <result name="FAILURE">/Page2.jsp</result> </action>Now, if i invoke this action, it runs and generated the PDF in the same browser window. But I want this PDF to save in my local system(where ever i specify the location) also automatically. --------> If I set the parameter contentdisposition = attachment, then it asks everytime to download/open the file. But I dont want to asking the location to save/open instead of saving the generated file wherever i specified..... <param name="contentDisposition">attachment</param>In other words, Whenever i invoke the action, the generated PDF File automatically save in the local machine(Where i to specify for eg., UNDER C:Reports).Regards,../../../themes/jasper/images//tools/forum/arrow.gifSoundararajan V Link to comment Share on other sites More sharing options...
anu.madan Posted July 15, 2013 Share Posted July 15, 2013 I also have the same requirements.Did anyone find any solution to saving the generated pdfs to the specified location automatically?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now