Thank you. I tried accessing the classes as in the following jaggery
snippet.

<%
var templateaccessor=Packages.org.wso2.cep.templateaccessor;
var templateAccessor=new templateaccessor();
var templatedomain=templateAccessor.getTemplateDomain();
%>

it gave an error at

*var templatedomain=templateAccessor.getTemplateDomain();*
I will try as you have suggested. Thank you.



*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*[email protected] <[email protected]>*mobile : +94 77 8449321

On Wed, Jan 14, 2015 at 8:08 PM, Udara Rathnayake <[email protected]> wrote:

> How you packaged this jar file? I tried similar scenario with a maven
> project.
> After creating the jar file I placed that within the lib directory and use
> the following Jaggery snippet to get the session cookie.
>
>  <%
>  var class = org.wso2.carbon.relying.party.adder.RelyingPartyAdder;
>  var RelyingPartyAdder = new class();
>  var sessionCookie = RelyingPartyAdder.login('admin', 'admin');
>  print(sessionCookie);
>  %>
>
>
>
> On Wed, Jan 14, 2015 at 5:50 PM, Fathima Dilhasha <[email protected]>
> wrote:
>
>> I have the following java class (Templateaccessor) which I need to call
>> from a jaggery file. For that I created a jar and accessed it. But it gives
>> an error when I try to access the getTemplateDomain() method.
>>
>> I can access simple methods as in
>>
>> http://madhukaudantha.blogspot.com/2014/02/using-java-method-from-jaggery-file.html
>>
>> I figured that it is due to the use of imports. Can someone suggest me a
>> way to resolve the imports in the jar file?
>>
>> *M.N.F. Dilhasha*
>> Software Engineering Intern | *WSO2 Lanka*
>>
>> email   :
>> *[email protected] <[email protected]>*mobile : +94 77 8449321
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : 1 4087864651 | 94 772207239
> Twitter : http://twitter.com/udarakr
> Blog    : http://udarakr.blogspot.com
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to