Register / Login
Win a copy of
Java Concurrency Live Lessons
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
downloading a file ok; also want to navigate to another page in the same action not sure how to
posted 7 years ago
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.
posted 6 years ago
Boost this thread!
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