Jump to content
Changes to the Jaspersoft community edition download ×

Getting XML from Servlet


swmk

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...