I am writing a XML editor/transformation/fo to pdf
tool that uses tapestry.
In the code, you will find an example of outputting a
pdfstream to the browser.
www.xmlforge.org
--- Saqib Rasul <[EMAIL PROTECTED]> wrote:
> This approach seems to throw exceptions that end up
> in the logs and look scary...
>
> Here is something that worked for me (for xml files)
> and doesn't throw exceptions...
>
> The other way is to create a normal tapestry page.
> In the .java file have something like this...
>
> public IMarkupWriter
> getResponseWriter(OutputStream arg0)
> {
>
> return new HTMLWriter("text/xml", arg0);
> }
>
> public void renderPage(IMarkupWriter writer,
> IRequestCycle cycle) {
>
> HttpServletResponse response =
>
> cycle.getRequestContext().getResponse();
> response.setContentType("text/xml");
>
> // generate your XML here...
> String mySringWithXML = ....
>
> writer.printRaw(myStringWithXML);
>
> }
>
> Regards,
>
> Saqib
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Pablo Ruggia [mailto:[EMAIL PROTECTED]
> > Gesendet: Wednesday, 27 April 2005 2:33 PM
> > An: Tapestry users
> > Betreff: Re: Showing a PDF Report
> >
> > Thanks Andreas !!!
> >
> > I wasm't closing the Response !!
> >
> > On 4/27/05, Andreas Andreou <[EMAIL PROTECTED]>
> wrote:
> > > Quoting Anatoli Krassavine
> > >
> > > "Sorry for chipping in late, but I am surprised
> that
> > > no one mentioned the simplest and cheapest
> approach:
> > > manually get hold of HttpResponse output stream
> and
> > > write to it and then close it. Tapestry will not
> > > attempt to re-open the stream."
> > >
> > > For even more details, check the archives for
> > > "Suppressing page response"
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]