Home
Analytics
display BIRT report in JSP page
Meow
Hi all
im new to BIRT.. im looking tutorial for displaying the BIRT report in jsp page..
im using BIRT version 2.3.2, apache tomcat 6.0, jdk update 13 and my SQL server 5.0.. i try to search in the internet to find any tutorials or notes that can guide me but not found..
im try to pass the parameter inside the BIRT report and display it in jsp page..
i hope somebody can help me..please help..
thank you..
Find more posts tagged with
Comments
Rapporter
Hi Meow,<br />
<br />
Following link will help you to integrate BIRT to Web Application.<br />
<br />
<a class='bbc_url' href='
http://wiki.eclipse.org/Java_-_Dynamic_Report_Servlet_(BIRT'>Java
- Dynamic Report Servlet (BIRT - Eclipsepedia</a>)
madhu_2009
Hi Rapporter,
Theres nothing displayed in the url u specified.
I also have the same problem to display the report using a jsp.
Iam using Actuate BIRT release 10.
Earlier I am successful in implementing the BIRT reports in JSP using the following code..
<birt:report id="v1" reportDesign="<%=REPORTNAME%>" height="250" width="500">
</birt:report>
The same doesnt work with this..
Can somebody help me...
Regards,
Madhu
Meow
Hi Rappoter
Thanks for the example..the problem is can u guide me or show me the step to implement it in BIRT..im still confuse either using dynamic web page or static web page under the business intelligence and reporting tools category.
this is my step
1- File-New-Dynamic Web Page/Static Web Page(if i choose Dynamic Web Page)
2- Specify project name(Testing),Target Run Time(Apache Tomcat 6.0)-Next-Finish
3- ... im stuck here
Please guide me...TQ
Regards,
Meow
Rapporter
Hi Meow,
Download the code for thi link i gave you and have a look at it. I will solve all your doubts.
Regards,
Surabhi
Meow
Hi Rapporter
I already download the code..but then i don't know how to start..can u explain to me in detail..im really stuck don't know how to start..
I tried but failed to connect..can you show me the way?
Thank you
Regards,
Meow
Meow
Hi Rapporter
I already download all the code needed. Now im confuse, in the Servlet Example it says to download the birt-runtime-2_1_1. When i check now already have birt-runtime-2_3_1.
So i download the 2_3_1. When i unzip the file, i could not find the lib directory inside the ReportEngine directory.And also couldn't find the configuration directory in the ReportEngine directory. I only found the plugins directory in the ReportEngine directory. So now how suppose im doing this?
Same happen in birt-runtime-2_1_1. I couldn't fine the directory needed.
Regards,
Meow
Rapporter
Hi Meow,
I have BIRT runtime 2_2_2 and 2_3_0. Both have have lib folder under ReportEngine folder.
Regards,
Surabhi
Meow
Hi Rapporter<br />
<br />
Can you pass me both of the birt-runtime that you have?<br />
This is my email <a href='mailto:' title='E-mail Link' class='bbc_email'>miss.amynor@gmail.com</a><br />
<br />
Thanks<br />
<br />
Regards,<br />
Meow
Rapporter
Hi Meow,
Runtime Download are very big in size so cant mail you. You can download it from following link
http://download.eclipse.org/birt/downloads/index2.2.2.php
Regards,
Surabhi
Meow
Hi Rapporter
Thanks for the link. I'll try my best to complete this task.anything later can i get your help again in future?
Regards,
Meow
Rapporter
Hi Meow,
ya sure you can contact me. I am also learning BIRT. I will be greatful If I am able to help you.
Regards,
Surabhi
madhu_2009
Hi Raporter,
When I tried using the JSAPI Iam getting the following error..
javax.servlet.ServletException: tried to access method org.eclipse.birt.report.utility.ParameterAccessor.urlEncode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; from class org.eclipse.birt.report.taglib.component.ViewerField
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.mashup_jsp._jspService(org.apache.jsp.mashup_jsp:168)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.IllegalAccessError: tried to access method org.eclipse.birt.report.utility.ParameterAccessor.urlEncode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; from class org.eclipse.birt.report.taglib.component.ViewerField
org.eclipse.birt.report.taglib.component.ViewerField.urlParamValueEncode(Unknown Source)
org.eclipse.birt.report.taglib.component.ViewerField.createURI(Unknown Source)
org.eclipse.birt.report.taglib.ViewerTag.__process(Unknown Source)
org.eclipse.birt.report.taglib.AbstractBaseTag.doEndTag(Unknown Source)
org.apache.jsp.mashup_jsp._jspx_meth_birt_viewer_0(org.apache.jsp.mashup_jsp:204)
org.apache.jsp.mashup_jsp._jspService(org.apache.jsp.mashup_jsp:129)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Could u help me please...
Regards,
Madhu
Rapporter
Hi Madhu,
I havent worked with BIRT report viewer so no idea about your error. Sorry
Regards,
Surabhi
Meow
Hi Rapporter,
I already download the birt-runtime and copy the file into the appropriate directory in Tomcat.
Now im very2 confuse how to start.After i copy into the directory what is the next step i should do?
can u give me the step?
I already created the Customers.rptdesign using eclipse. So how i want to view the Customers.rptdesign in jsp file.
Tomorrow is my last day on this assignment. I hope u can help me?
Thank you.
Regards,
Meow
Rapporter
Hi Meow,
By the help of that code you can generate your report through servlet.
I have attached the code. It will help you.
Regards,
Surabhi
Meow
Hi Rapporter,
I already download the code.zip. Now can u tell me how should i start? I mean where should i store the code(BirtEngine and DynamicReport)? And what should i do in eclipse? Need i create one dynamic web page name Dynamic Report or what?
Im using eclipse 2.3.2. I already created Customers.rptdesign. How suppose i call the Customers.rptdesign when im creating the dynamic web page?
Im doing like below:
1- File-New-Project-Web-Dynamic Web Project-project name-Target Runtime(Tomcat 6.0 im using this version)-Finish
when i click finish the dynamic web page will be created and i should find the index.jsp under the web-inf folder. but then i couldn't find those file?
is there any step i forget or it has another way to get the index.jsp using eclipse?
Rinki
<blockquote class='ipsBlockquote' data-author="madhu_2009"><p>Hi Rapporter,<br />
Theres nothing displayed in the url u specified.<br />
I also have the same problem to display the report using a jsp.<br />
<br />
Iam using Actuate BIRT release 10.<br />
Earlier I am successful in implementing the BIRT reports in JSP using the following code..<br />
<br />
<birt:report id="v1" reportDesign="<%=REPORTNAME%>" height="250" width="500"><br />
</birt:report><br />
<br />
The same doesnt work with this..<br />
Can somebody help me...<br />
<br />
Regards,<br />
Madhu</p></blockquote>
<br />
<br />
i want to display my report on jsp using <br />
<birt:report id="v1" reportDesign="<%=REPORTNAME%>" height="250" width="500"><br />
</birt:report><br />
<br />
but i am not getting the option of making that kind jsp in BIRT eclipse<br />
<br />
<br />
can you tell me if there are any dependicies or jars that i could add to get the tags?<br />
<br />
Thanks
Rapporter
Hi Rinki,
I was not able to embed it through BIRT tld. I was using RE API to generate report so I used deffreent approach to do so.
I created a ByteArrayOutputStream which i made output stream for report response. I displeyed the in JSp.