Jump to content
We've recently updated our Privacy Statement, available here ×

Load a jasper from outside in a web app


me_vsoundar

Recommended Posts

 Hello,

I've a problem when place the jasper files outside the project.

Consider,

If I use the jasper in Struts2 applications and the masterReport jasper (consider Master1.jasper)  be placed inside the webcontent, then it is working fine.(I tell the location as  a relative path in the struts.xml file.)

Suppose, if i want to place the jasper files outside of my web application, i.e other Drive. Now i want to run my application with the template which was placed outside..

What to give the location in my "struts.xml"...?

And, How i indicate the relative path instead of  "absolute path" in my master Report. Is it possible to give the relative path.?

 

 ../../../themes/jasper/images//tools/forum/arrow.gif

 Soundararajan V

 

 

 

 



Post Edited by me_vsoundar at 04/29/2010 05:36
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi me_vsoundar,

 

Create an environment variable pointing to the location of all jasper files and use that environment variable in your application to get the location of the jasper file.

 

DNV Srikath



Post Edited by dnvsrikanth at 05/01/2010 05:21
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...