I've worked with both FOP and JasperReports
and I really prefer the FO format over jasperreport's custom format.
But Jasperreports allows to use Java/POJO based transformations, so I am wondering if this is possible in FOP.

Basically the idea is to replace:
- generate XML based on POJO
- transform XML with XSL to FO
- feed FOP the FO
with
- supply POJO to "JSP without http" which generates FO
- feed FOP the FO

Does anyone know an (open source?) library which can do something like:

class Person {
  private String firstName;
  private String lastName;
  // getters and setters
}

...
<jspWithoutHttp:valueObject name="personList" class="java.util.List<Person>"/>
...
<% for (Person person : personList) { %>
  <fo:block>
    <%= person.getFirstName%>
  </fo:block>
  <fo:block>
    <%= person.getLastName%>
  </fo:block>
<% } %>
...

This should be usable in fat clients, webclients, ...: it is not bound to the HTTP protocol.

--
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to