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/23 15:53:49 UTC
How to locate streamresponse of jasper in a page ?
Good night All :)
I have some problem with streamresponse of jasper..I want while I press
button submit it will displays jasper page in PDF format in a page.. like
picture below.
http://tapestry.1045711.n5.nabble.com/file/n4258880/monitoring4.jpeg
Until now I use this strategy : exporting jasper to PDF file to a path and
then display it with embed tag like this :
embed src="/Images/temp2.pdf" width="745" height="600"/
but I fill it very slowly. Any way to make it be fast.. and it very
important to make display as that picture.
Thank for u'r attention n u'r response :D
Rg:D
Rony
--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-locate-streamresponse-of-jasper-in-a-page-with-screenshot-tp4258880p4258880.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
Re: How to locate streamresponse of jasper in a page ?
Posted by ronizedsynch <sa...@yahoo.com>.
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