http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html

look under:
Action Requests -> Stream response

for example you can return
TextStreamResponse("text/plain", "plain text");

if you are generating an image or sth, and want a save dialog to show up,
you can use a trick (until it's supported directly):

declare:
   @Inject
   private final RequestGlobals requestGlobals;

then before returning the Stream response
   
requestGlobals.getHTTPServletResponse().addHeader("Content-Disposition","attachment;
filename="+fileName);


Davor Hrg

On 5/27/07, xVik <[EMAIL PROTECTED]> wrote:


i know this is simple question.. i read about this somewhere in tap5
docks..
but i dont remember where.
i want to redefine output strem for concrete page (return not tap
template,
but simple text for example or something else)

please point me where to read this,, thanks a lot
--
View this message in context:
http://www.nabble.com/tap5%3A-how-to-response-without-tap-template-%28redefine-output-stream%29-tf3823400.html#a10824117
Sent from the Tapestry - User mailing list archive at Nabble.com .


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to