File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

jasper inside jar

Melquiades Fagundez
Greenhorn

Joined: Sep 23, 2010
Posts: 2
Hi,

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"
class="org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView">
<property name="url" value="/WEB-INF/classes/com/mycompany/business/report1.jasper" />
<property name="headers">
<props>
<prop key="Content-Disposition">
attachment; filename=report1.pdf
</prop>
</props>

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: http://aspose.com/file-tools
 
subject: jasper inside jar