You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2009/01/22 22:38:50 UTC

[Tapestry Wiki] Update of "SendingDiferentContentTypes" by CristianLopez

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The following page has been changed by CristianLopez:
http://wiki.apache.org/tapestry/SendingDiferentContentTypes

------------------------------------------------------------------------------
                  // response.setHeader("Content-Disposition", 
                  //		"inline; attachment; filename=" + someFileName);
  	        try {
- 		  OutputStream os = response.getOutputStream(new ContentType(/* Your file's content-type */);
+ 		  OutputStream os = response.getOutputStream(new ContentType(/* Your file's content-type */));
                    // Write your file's data to os
                  } catch (IOException e) {
  	          throw new ApplicationRuntimeException(e);

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org