Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jasper inside jar  RSS feed

Melquiades Fagundez
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 !
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!