• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

PDF download Using Struts

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All ,

I am using struts to download a PDF file thro action classes . In the same action class I am having two methods to open the PDF file based on a condition .The download is working fine from one action method and not from the other .I am getting the correct URL and file name in the logs , but file is not opening .I am totally confused about how to proceed further .My struts.xml goes like this :

<action name="PartnerRevenueAction"
class="com.tsystems.portal.common.commonactions.PartnerAction"
method="displayReportAction">

<result name="SUCCESS" type="stream">
<param name="inputName">inputStream</param>
<param name="contentType">application/pdf</param>
<param name="contentDisposition">${reportname}</param>
<param name="bufferSize">15097152</param>
</result>
</action>
<action name="PartnerBillsAction"
class="com.tsystems.portal.common.commonactions.PartnerAction"
method="displayInvoiceAction">

<result name="SUCCESS" type="stream">
<param name="inputName">inputStream</param>
<param name="contentType">application/pdf</param>
<param name="contentDisposition">${filename}</param>
<param name="bufferSize">15097152</param>
</result>
</action>

The download is working fine for the PartnerBillsAction but not the revenue .Could some one suggest me a point from where I can take this forward ??

Thanks & Regards ,
Mithuna
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solved or Not, if not, post your PDF creation, action class code.
 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic