>From what I understand about the question, it sounds like the user is downloading a file from the server and you want to abort the request after the action executes. It also sounds like the download is taking place in the Action. What I don't understand is how the users web page could be changed after the download is complete. Any HTML that is sent would then be in the download stream. A redirect may change the web page after the download however that is not likely. In either case I think that there is a issue in the way that you are using an Action. The executing Action should not be sending anything to the Response. I am assuming that the only reason that the Response is in the Action.execute signature is for setting/retrieving cookies. The best solution would be for the Action to forward to a Servlet that would send the resource to the client.
-james ----- Original Message ----- From: "David M. Karr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 01, 2003 12:11 AM Subject: Re: to forward or NOT? > >>>>> "Riyaz" == Riyaz Mansoor <[EMAIL PROTECTED]> writes: > > Riyaz> hi > > Riyaz> is it at all possible to NOT forward after executing an action? > > Riyaz> here's my situation. a link would execute a download action and the file > Riyaz> downloads fine. however, i want to keep the existing webpage displayed and > Riyaz> NOT move to a different page. > > Riyaz> is there a ActionForward directive or other that tells struts to stay put? > > Riyaz> OR would i have to construct the full url (with parameter name/values) and > Riyaz> forward there? > > Riyaz> ideas? > > Did you try returning null from the Action method? > > -- > =================================================================== > David M. Karr ; Java/J2EE/XML/Unix/C++ > [EMAIL PROTECTED] ; SCJP; SCWCD > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

