Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Issue with passing parameters from customized jsp page to BIRT report
shruti
Hi,
I am using a custom jsp page to display the report param. When i pass the action to the BIRT report the parameters are null. Can anyone suggest the way of doing the same thing.
Thanks.
Find more posts tagged with
Comments
bhanley
How are you rendering the report? Generally a BIRT viewer will expect the parameters to be in the URL in name-value pairs. Give me a little more background and I can help you work out the disconnect in your implementation.
shruti
Hi Brian,
I have a jsp where i have created form with all the input parameters to my report. On submit of this form i am calling a struts action class where the getter and setters are defined for the parameters. The result of struts action is another jsp where i am calling my BIRT report in <birt:viewer> tag with showparameterPage="false". In the report initialize method i am doing the following:
var session = reportContext.getHttpServletRequest().getSession();
var myparam = session.getAttribute("abc");
reportContext.setParameterValue("abc", myparam );
where abc is the report parameter.
When i run the report the report it runs using default parameter value. The parameter is getting passed as null from JSP to the report. I am using struts2 in my application.
Thanks.
vaishnavi
Hi Shruti,
I'm facing the same problem..even m facing a problem while creating JSP code in which i've to pass the report parameter..can u please help?can u tell me how to create parameter from the jsp page so that it should be passed to the BIRT report
Thanks in Advance!!!
Regards,
Vaishnavi
danhof
Hello,<br />
maybe i can help you. I had the same problems with passing parameter from a JSP to a report. I'm using Tomcat and looked into the log-Files. There i found several problems with axis. I fixed this by including axis.jar and axis-ant.jar into the lib-Directory of my projekt and integreating them into the project.<br />
Hopfully i can help you.<br />
regards<br />
Daniel<br />
<br />
PS: General advice you can get here for example. <a class='bbc_url' href='
http://www.newsletterarchive.org/2007/12/06/277634-Using+the+BIRT+Web+Project+Wizard'>EclipseZone
News - Using the BIRT Web Project Wizard</a>
shruti
Hi Vaishnavi,
There are few things which you should check..
1. The name of the parameters in the report should match the JSP page parameters(exactly same).
2. All the parameters should be passed a value from the jsp page.
Can you send me the jsp and the report?