> Hi,
>
[quoted text clipped - 9 lines]
>
> ff
Assuming what you want is sending a text file instead of rendering
markup on the browser, then look at writing on the response, and
setting response headers and type.
Something like:
response.setContentType("text/plain");
response.setHeader("Content-Disposition","attachment; filename=" +
yourFileName);
response.getWriter().write(textContent);
-cheers,
Manish
finecur - 23 Aug 2007 00:22 GMT
> > Hi,
>
[quoted text clipped - 23 lines]
> -cheers,
> Manish
Thanks, it worked very well. I found, however, if I added:
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
it would not work. Do you know why?
Thanks,
ff