AnsweredAssumed Answered

Load a class in Gel

Question asked by Fabio Cresta Employee on Jun 18, 2014
Latest reply on Jun 18, 2014 by gcubed

Hi All.

I need to use a standard class (I mean, a class that is already present in the <clarity>\lib folder) from a gel script.

To test, I defined the following a very simple script:

 

<gel:script

    xmlns:core="jelly:core"

    xmlns:util="jelly:util"

    xmlns:x="jelly:xml"

    xmlns:sql="jelly:sql"

    xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"

    xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"

>

    <!-- create Properties class -->

    <core:new className="java.util.Properties" var="propertiesClass"/>

    <!-- Create session Class -->

    <core:new className="javax.mail.Session" var="sessionClass"/>

</gel:script>

 

both util.jar and mail.jar are present in the lib folder, but when I run the script, I get an error on the Session class creation, while the Properties class is correctly instantiated.

Any help on this?

Thanks

Fabio

Outcomes