aspose file tools*
The moose likes Struts and the fly likes downloading a file ok; also want to navigate to another page in the same action not sure how to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "downloading a file ok; also want to navigate to another page in the same action not sure how to " Watch "downloading a file ok; also want to navigate to another page in the same action not sure how to " New topic
Author

downloading a file ok; also want to navigate to another page in the same action not sure how to

Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
In my .xml I have the following which works


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.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's because that's not really how to web works--an HTTP request can only send back a single response. I suppose you could poll via JavaScript.
 
wood burning stoves
 
subject: downloading a file ok; also want to navigate to another page in the same action not sure how to
 
Similar Threads
https becomes http after redirectAction
Visiting two pages for one action
Struts2 Action Mapping Problem - No configuration found for the specified action
Tiles problem in rendering
Delete file when the file downloaded.