A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
downloading a file ok; also want to navigate to another page in the same action not sure how to
Joined: May 05, 2010
May 28, 2010 04:20:13
In my .xml I have the following which works
<action name="profileReport" class="com.myApp.web.ReportAction" method="profileReport"> <result name="success" type="stream"> <param name="contentType">text/tab-separated-values</param> <param name="inputName">inputStream</param> <param name="contentDisposition">filename="report.tsv"</param> <param name="bufferSize">1024</param> </result> <result name="failure">/WEB-INF/pages/report-failure.jsp</result> </action>
This will create a report and will prompt me to download it.
But after I have downloaded the file I then want to load another page /WEB-INF/pages/report-sucess.jsp wgich will out put some metrics.
I cant find any examples , all the examples just deal with downloading a file.
Joined: Sep 29, 2008
Jun 01, 2010 05:57:29
It is sorta covered in the
JavaRanch Style Guide
subject: downloading a file ok; also want to navigate to another page in the same action not sure how to
https becomes http after redirectAction
Struts2 Action Mapping Problem - No configuration found for the specified action
Visiting two pages for one action
Delete file when the file downloaded.
Tiles problem in rendering
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015