Using import classes in xml

By: Moisey Blehman - rhal
Using import classes in xml
2003-01-31 01:47
Hi,

How can I import my own classes (not only lang and util) in order to use them inside of xml?

I'am aware that one can use non default classes through scriplets, but can this be done without scriplets use?

Thanks for advice




By: Teodor Danciu - teodord
RE: Using import classes in xml
2003-01-31 02:40

Hi,

You only have to use the entire class name in
the report expressions (including the package).

That's all. No import statements needed.

I hope this helps.
Teodor





By: Moisey Blehman - rhal
RE: Using import classes in xml
2003-02-01 05:19
Thank you very much - that really helped a lot. ^_^
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 9 months ago

5 Answers:

Hi all,

I tried including the package but still get an error:
java.lang.ClassNotFoundException: abc.myservice.ClassBService

Any idea?

Thanks-
bobz28's picture
260
Joined: Oct 16 2009 - 12:08pm
Last seen: 13 years 7 months ago

Apparently the abc.myservice.ClassBService class is not in your app's classpath. Try to add it to the classpath.

HTH,,

sanda

shertage's picture
19706
Joined: Sep 26 2006 - 8:06pm
Last seen: 11 months 2 weeks ago
Thanks for your response...
When I included the abc.myservice.ClassBService class in the classpath. I get
java.util.zip.ZipException: error in opening zip file...

Weird...Dod you have any ideas?

Thanks-
bobz28's picture
260
Joined: Oct 16 2009 - 12:08pm
Last seen: 13 years 7 months ago
Can somebody help...!!!!
I included the abc.myservice.ClassBService class in the classpath and when I compile the template I get
java.util.zip.ZipException: error in opening zip file...
bobz28's picture
260
Joined: Oct 16 2009 - 12:08pm
Last seen: 13 years 7 months ago
Well, I bundled the classes into a jar file and included it in the classpath and it works fine. Couldn't include individual class though... weird, don't know why...
bobz28's picture
260
Joined: Oct 16 2009 - 12:08pm
Last seen: 13 years 7 months ago
Feedback
randomness