Re: Returning a file attachment and a page together in a request

2009-06-28 Thread Geoffrey Wiseman
On Sun, Jun 28, 2009 at 12:08 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > I am able to do (1) using StreamResponse but not sure how to solve (2)- >> send a Page response back and a file as an attachment. >> > > > To redirect the user to a page (Login, for example), just return

Re: Returning a file attachment and a page together in a request

2009-06-27 Thread Thiago H. de Paula Figueiredo
Em Sat, 27 Jun 2009 23:00:42 -0300, Raghu Yegavakota escreveu: I am a newbie to Tapestry and have a question: Welcome! :) I am able to do (1) using StreamResponse but not sure how to solve (2)- send a Page response back and a file as an attachment. To redirect the user to a page (Login

Returning a file attachment and a page together in a request

2009-06-27 Thread Raghu Yegavakota
I am a newbie to Tapestry and have a question: I have a downloads page that displays a list of files to the user. When the user clicks on any file link I need to do one of two things: 1) If the user is logged in, I need to send the selected file as an attachment to the browser 2) If the user is