java - forward issues after file download in struts 1.3 action class -


i have create , download excel file using struts1.3, here have created excel file dynamically , downloaded successfully, after file download need forward other page success page, not forwarding(mapping.findforward("success")) struts action class. please me solve issue.

thanks, siva.

what want send 2 response single request :

  1. the excel file downloaded
  2. the success page.

technically not possible. if commit stream downloading file, mark end of request.

there couple of workarounds requirement:

  1. show success page , link user can download excel file
  2. show success page , through onload script trigger form submit enabling user download file without additional clicks.

in both situtations must first show success page , download image. alternate solution problem use ajax (however not sure if acceptable).


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -