It's not a secret anymore!
The moose likes Other Application Frameworks and the fly likes jasper inside jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "jasper inside jar" Watch "jasper inside jar" New topic

jasper inside jar

Melquiades Fagundez

Joined: Sep 23, 2010
Posts: 2

I've created a jasper report that I need to share between two different java projects and I'm trying to avoid copy & paste .

I am using spring to do the configuration, and so in my reports-views.xml I am trying to do something like this:

<bean id="report1"
<property name="url" value="/WEB-INF/classes/com/mycompany/business/report1.jasper" />
<property name="headers">
<prop key="Content-Disposition">
attachment; filename=report1.pdf

My idea was to package report1.jasper inside a shared jar file and configure each of my projects as shown above, but I can't get this to work ..

Any ideas?

Thanks in advance !
I agree. Here's the link:
subject: jasper inside jar
jQuery in Action, 3rd edition