You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Rajeswari Venkatachalam <rv...@eforceglobal.com> on 2001/10/17 19:56:50 UTC

setting headers in JSP templates

Hi,
  I want to set the content-type for my page. Can I do this in the JSP like
this?  It does not work. Please suggest if there are any other possible ways
to do this?
 
rundata.setContentType("text/plain");
rundata.getResponse().setHeader("content-disposition","attachment;filename=x
yz.txt");

thanks,
-Raje


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org