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 :
- the excel file downloaded
- the success page.
technically not possible. if commit stream downloading file, mark end of request.
there couple of workarounds requirement:
- show success page , link user can download excel file
- 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
Post a Comment