> I create a servlet in Tomcat that pass a file to the client, like this:
>
[quoted text clipped - 16 lines]
> The big question is: how can I show a name that I want instead of the
> name of the servlet?
I got the same problem some time ago, I solved it that way, that I
opened a popup and set the location.href with the file-link I want to
send.
Maybe also set the header and the content-type sould be a way..
// (HttpServletResponse)
response.setContentType( "application/pdf" );
response.addHeader("Content-Disposition", "attachment; filename="
+ fileName);
bjoern_
AA - 14 Jun 2006 12:50 GMT
Thx, it works!
Alberto
bjoern_ ha scritto:
> I got the same problem some time ago, I solved it that way, that I
> opened a popup and set the location.href with the file-link I want to
[quoted text clipped - 8 lines]
>
> bjoern_