java example exception in viewer.jsp

Stimulsoft Reports.JAVA discussion
Post Reply
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

java example exception in viewer.jsp

Post by xiaohaoxifei »

I'm trying to run the java demo in my local environment.
With the viewer.jsp, I've got this problem.
java.lang.RuntimeException: java.net.MalformedURLException: no protocol: /Data/Demo.xml
Please help, Thanks.
aaa.png
aaa.png (14.42 KiB) Viewed 6139 times
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
In class com.stimulsoft.MyLoadAction you can define path to database, it seems that folder Demo not available.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Thanks for your reply, could you provide a full java demo package? I've downloaded the package from github but failed to run the viewer.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Is there a manual for the flash designer?
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
You can use github package, but configure path to Database in MyLoadAction.java
StiXmlDatabase xmlDatabase = new StiXmlDatabase("Demo", "/Data/Demo.xsd", "/Data/Demo.xml");

Documentation you can find here https://www.stimulsoft.com/en/documentation
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Hi Vadim, Thank you so much. Stimulsoft report is awesome.
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.​
We are always glad to help you.
Let us know if you need our help.

Thank you.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Vadim wrote:Hello.​
We are always glad to help you.
Let us know if you need our help.

Thank you.
Hi Vadim,

I've got another question for you.
We're trying to integrate the java HTML5 version in our project, and can we pass a json object parameter as data source to a report, either for the designer or viewer?

Thanks.
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
Yes, you can use Json datasource.
Attachments
json.PNG
json.PNG (45.5 KiB) Viewed 6099 times
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

The json file data source means a json format file, not a json object, by which I mean, some json object could not be set dynamically as the data source, right?
Post Reply