How do I send two HttpServletResponse responses? I'm writing an app where I save a file to the user's PC and then redirect them to another page. I can save the file or redirect, but not do both. Here's my code:
If I leave it as-is, it will redirect to google without saving the file. If I comment out the redirect line, the file saves as it should.
Try not to do that. Using "filler" in this case, creates a completely different environment for the question.
Joined: Nov 24, 2009
Bear Bibeault wrote:Ah yes, denying carpenters their saws.
Thanks for the help guys... at least I won't waste too much time finding a non-existent answer.