You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ronizedsynch <sa...@yahoo.com> on 2011/03/26 05:35:13 UTC

Re: How to locate streamresponse of jasper in a page ?

it's really to locate StreamResponse object in one page

--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-locate-streamresponse-of-jasper-in-a-page-with-screenshot-tp4258880p4265214.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to locate streamresponse of jasper in a page ?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 29 Mar 2011 04:08:15 -0300, ronizedsynch <sa...@yahoo.com>  
wrote:

> Thank ael,
> Does pdf display within new tab ?

PDF displaying inside a tab, instead of a different one, is something not  
supported by HTML IMHO. This seems to be a combination of browser + plugin.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to locate streamresponse of jasper in a page ?

Posted by "Joost Schouten (ml)" <jo...@jsportal.com>.
  If you want to do this well cross browser, generate an image from your 
pdf and display that in your web-app. IText [1] can help you achieve this.

Good luck,
Joost

[1] http://sourceforge.net/projects/itext/

On 29/03/11 9:08 AM, ronizedsynch wrote:
> Thank ael,
>
> Does pdf display within new tab ?
> I want to locate streamresponse of button Submit in this case is pdf display
> as look as above picture.. when I using JRPdfExporter, its response is open
> new tab in my browser..
>
> Thanks&Regards
> Rony
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-locate-streamresponse-of-jasper-in-a-page-with-screenshot-tp4258880p4268898.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to locate streamresponse of jasper in a page ?

Posted by ronizedsynch <sa...@yahoo.com>.
Thank ael,

Does pdf display within new tab ? 
I want to locate streamresponse of button Submit in this case is pdf display
as look as above picture.. when I using JRPdfExporter, its response is open
new tab in my browser..

Thanks&Regards
Rony

--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-locate-streamresponse-of-jasper-in-a-page-with-screenshot-tp4258880p4268898.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to locate streamresponse of jasper in a page ?

Posted by ael <al...@dash.com.ph>.
I have tried this in jsp but not in tapestry.


        path = application.getRealPath("/");
        ouputStream = response.getOutputStream();
        jasperPrint = JasperFillManager.fillReport(path + "reports/" +
filename, parameter, con);


This will generate a pdf report on reports folder in your web apps then call
the generated pdf in your application.


        response.setContentType("application/pdf");
        exporter = new JRPdfExporter();
        exporter.setParameter(JRExporterParameter.JASPER_PRINT,
jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
ouputStream);


--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-locate-streamresponse-of-jasper-in-a-page-with-screenshot-tp4258880p4266778.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org