Hi there! I would like to know if what I'm trying to do is possible... My goal is to provide a submit button to user that will invoke a struts Action which will generate a pdf document and send it back to him. What I'm doing is to write the document in the response and to change the header mime type. This works great, but what I need to do is to send the user to other page, I mean, he would click the button and he would be presented in another page and he would recieve the pdf document.
Is there a way to get this functionality or di I have a bad nightmare??
Well, you can't forward after sending the file to the user. And if you submit/ link to the file servlet, then the page doesn't get displayed, you'll directly get the download dialog box.