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 Spring in Action this week in the Spring 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.
 
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