zaint_dragon Posted December 23, 2014 Posted December 23, 2014 Hi. I'm a newbie for jasper reportI want to show a chart from jasper on jsp page [Portlet in liferay]. and value to draw a chart I get from webservice.and I not found a solution to use data from another source and didn't use jrxml or jasper file.Can you introduce this case to me?
darth_fader Posted December 25, 2014 Posted December 25, 2014 I'm not sure that you can reference a chart from a report outside of the report in a given java context. It's duplicated effort, and not the cleanest approach, but Jasper Community edition uses JFreeChart, so you could use that same library outside of JasperReports, within the JSP, and simply generate the same chart on the JSP.And if you're getting the chart from a web service, it may be possibe to access that service directly from the JSP.In short, it seems you can bypass Jasper all together for this requirement.
zaint_dragon Posted January 7, 2015 Author Posted January 7, 2015 Now I found solution to pass value to jasper with xml, but I can't find solution to display report without jtxml or jasper file. Have a solution to make it?
darth_fader Posted January 7, 2015 Posted January 7, 2015 not sure what you're looking for here. Jrxml and Jasper/Java files are the only ways reports can be generated; but if all you need to do is display a chart you can drop Jasper all together and just work with JFreeChart or Java based charts library.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now