This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: downloading a file ok; also want to navigate to another page in the same action not sure how to
 
Similar Threads
Visiting two pages for one action
https becomes http after redirectAction
Tiles problem in rendering
Struts2 Action Mapping Problem - No configuration found for the specified action
Delete file when the file downloaded.