By the way is this possible without having a http request (or cycle)? Would
you then need to generate a cycle object?

Cheers,



On 9/19/06, Stephane Decleire <[EMAIL PROTECTED] > wrote:
>
> Here it is :
>
>
> 
http://mail-archives.apache.org/mod_mbox/jakarta-tapestry-user/200503.mbox/[EMAIL 
PROTECTED]
>
> -------------------------
>
> Assuming you are already familiar with the Javamail API, it sounds like
> all
> you really need is the Tapestry-rendered data stream.  This is actually
> really easy:
>
> EmailPage next = (EmailPage) cycle.getPage("EmailPage");
> next.setSomeProperty(getSomeProperty());
>
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> HTMLWriter writer = new HTMLWriter(baos);
> cycle.activate(next);
> cycle.renderPage(writer);
> writer.flush();
>
> You can then do whatever you want with baos.  I can give you more
> details if
> you would like.
>
> Shawn
>
> -------------------------
>
>
>
> Peter Dawn a écrit :
> > can you share the link/info for implementing this in tap3
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> Stéphane Decleire
>
> 05 56 57 99 20
> 06 63 78 69 06
>
>
>

Reply via email to