Jasper + Struts2 Multiple reports in one action -


in struts.xml file

<action name="myjaspertest" class="com.sample.supplierenquiryreport">             <result name="success" type="jasper">                 <param name="location">/reports/xyz.jasper</param>                 <param name="datasource">mylist</param>                 <param name="format">pdf</param>             </result>         </action> 

i need return multiple pdf files after 1 action. possible?

no, ui jsp can:

  1. open multiple actions, each 1 returning pdf;
  2. open jsp, multiple <iframe>, each 1 pointing (with src attribute) different action (or better, same, passing different parameters), , returning pdf.

then several pages each 1 pdf, or big page several iframes, each iframe pdf.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -