click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <>
Subject [jira] Commented: (CLK-566) ClickServlet using HttpServletResponse's getWriter()
Date Tue, 07 Jul 2009 18:26:15 GMT


Bob Schellink commented on CLK-566:

Hi Jamie,

Welcome. If you want to render a PDF you should set the Page path to null, then Click won't
render the template. See this FAQ:

May I also suggest asking questions on the user mailing lists first before raising the issue
on JIRA:

kind regards


> ClickServlet using HttpServletResponse's getWriter()
> ----------------------------------------------------
>                 Key: CLK-566
>                 URL:
>             Project: Click
>          Issue Type: Improvement
>          Components: core
>            Reporter: Jamie Szafran
>            Priority: Minor
> Hello,
> I'm a relatively new Click user, so my apologies if I managed to miss something in searching
for an answer to this one.
> I'm using Click 2.0.1 and am using iText 2.1.6 for PDF rendering.  The issue is that
in ClickServlet's renderTemplate(Page page) method, HttpServletResponse's getWriter() method
is called [on the page's response object].  Because of this, getOutputStream() cannot be called
on the same object, which is required for the iText rendering.  Is it possible for ClickServlet
to use getOutputStream() and then create a PrintWriter around that instead of retrieving the
PrintWriter?  That way, one can at least access the OutputStream.  Or maybe, after looking
at, there could be some way to make a choice
as to which is used?
> Thanks,
> -Jamie

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message