I would like to be able within a servlet
to launch a file download and just after reloading
a jsp page( =The servlet generates two response ).

Is it possible ?

----

No, but you can give a JSP/HTML page in response that will have JScript function that 
opens another "page" that will be just a download (the URL will point to the document 
or to a Servlet that will in response give the document). The function should be in 
"onLoad" attribute of the <body> tag.

In other words, any such "forking" must be done on the client side - HTTP is 
one-request-one-response model.

Nix.


Reply via email to