swmk Posted April 12, 2007 Share Posted April 12, 2007 Hi, all.. How can I set report's source (which is XML) from a servlet which generates results in XML? Regards;Stephen Link to comment Share on other sites More sharing options...
Teodor Danciu Posted April 19, 2007 Share Posted April 19, 2007 Hi, I'm not sure I understand what you mean, but if it is about feeding XML produced by a servlet as data for a JR report, it should not be difficult.The JRXmlDataSource implementation can read XML from any input stream, including those coming from a HTTP connection to a servlet. If you think you need to see some code that does something like this, then you could check the JasperReports-Extensions project here:http://jasperforge.org/sf/scm/do/listRepositories/projects.jasperreports-extensions/scm It contains an enhanced XML data source able to load XML from a given URL. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
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