Page 1 of 7

java example exception in viewer.jsp

Posted: Mon Sep 18, 2017 6:17 am
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 6263 times

Re: java example exception in viewer.jsp

Posted: Mon Sep 18, 2017 4:14 pm
by Vadim
Hello.
In class com.stimulsoft.MyLoadAction you can define path to database, it seems that folder Demo not available.

Re: java example exception in viewer.jsp

Posted: Wed Sep 20, 2017 12:50 am
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.

Re: java example exception in viewer.jsp

Posted: Wed Sep 20, 2017 7:48 am
by xiaohaoxifei
Is there a manual for the flash designer?

Re: java example exception in viewer.jsp

Posted: Wed Sep 20, 2017 10:57 am
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

Re: java example exception in viewer.jsp

Posted: Thu Sep 21, 2017 4:22 am
by xiaohaoxifei
Hi Vadim, Thank you so much. Stimulsoft report is awesome.

Re: java example exception in viewer.jsp

Posted: Thu Sep 21, 2017 7:20 am
by Vadim
Hello.​
We are always glad to help you.
Let us know if you need our help.

Thank you.

Re: java example exception in viewer.jsp

Posted: Fri Sep 22, 2017 3:19 am
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.

Re: java example exception in viewer.jsp

Posted: Fri Sep 22, 2017 7:44 am
by Vadim
Hello.
Yes, you can use Json datasource.

Re: java example exception in viewer.jsp

Posted: Fri Sep 22, 2017 9:28 am
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?