For anyone interested here is the solution to change the name of the
file generated in the stream.
OutputStream os = response.getOutputStream(new
ContentType("application/xls")); //or whatever content type you are
streaming
response.setHeader("Content-Disposition",
"attachment; filename=" + filename);
Thanks to Andreas for pointing me in the right direction.
Ivano Luberti ha scritto:
> Andreas, maybe I have a terminology problem:
>
> Andreas Andreou ha scritto:
>
>> 1) inject ApplicationStateManager and use its get method
>> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html
>>
>>
>>
> what you mean by Injecting ? I'm in a service , can I use @Injectxxxxx
> in an EngineService ? I would say no.
> Then how I'm supposed to inject in a service: using hivemodule.xml
>
>
>
>> 2) It's a matter of setting some repsonse headers... google for
>> Content-Disposition
>>
>>
> Ok I will
>
>
--
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]