Jump to content
Changes to the Jaspersoft community edition download ×

loadReport does not work in webapp

Recommended Posts

By: Michelle Popovits - mpopovits

loadReport does not work in webapp

2002-01-31 13:21



Hi, I'm new to the Jasper Reports.

It looks pretty interesting although I'm not sure it works too well in a j2ee webapp environment (correct me if I'm wrong).


jasperReport = JasperManager.loadReport(fileName);


It seems that the loadReport method does not accept reading the file from a webapp. Would it be possible to overload this method to accept an InputStream and allow getResourceAsStream() to get the file from within the webapp.



public java.io.InputStream getResourceAsStream(java.lang.String path)






By: Teodor Danciu - teodord

RE: loadReport does not work in webapp

2002-02-01 01:03




I think you are right.


Working with streams would be more appropriate.

I'm currently studying this possibility.







By: Michelle Popovits - mpopovits

RE: loadReport does not work in webapp

2002-02-01 07:02

Hi Teodor,


I just modified the Jasper source to incorporate streams for loadReport to work in webapp (I'm still working on other problems). Do you want me to send you the modifications? Where?



Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...