Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: Downloading a file from the server


Message #1 by "Jan Lichtarowicz" <jan.lichtarowicz@c...> on Thu, 8 Feb 2001 16:26:31
I am having trouble with downloading a file from the server.
the programme works like this:
1. send request from a form to a controller
2. controller runs a RequestHandler - Java code that gets session beans 
and creates the file,
3. I then set the content type and output the file

now the problem is that when I return to the controller, it tries to 
forward to a new page. this it cannot do because I have sent output.

I have tried to use the form to open a window with javascript and download 
the file like that but its too quick, the file has not jet been generated.

If anyone has any comments to help me or a solotion please respond.

Thanks Jan.

________________________________

jan.lichtarowicz@c...

  Return to Index