Skip to main content
Participant
June 30, 2010
Question

Issue in passing value to java method.

  • June 30, 2010
  • 1 reply
  • 497 views

Hi

I am having issue in CF9 while passing cfset value to java. Here is the code snippet:

<cfset abcUrl='ldap://abc.dce.com:1111 ldap://xyz.abc.com:2222'>

<cfset Obj = CreateObject("java","GetXYZ")>
<cfset ObjResp = Obj.abc(#abcUrl#)>

When i am passing abcUrl value it is not parsing it properly in java, but when i am giving only one url it is working.

like : <cfset abcUrl='ldap://abc.dce.com:1111'>

But i need to put both URL.

Please give me the solution.

Thanks in advance

Anshul

    This topic has been closed for replies.

    1 reply

    June 30, 2010

    If you try to pass a string to your java function, I think it should be

    <cfset ObjResp = Obj.abc("#abcUrl#")>

    When i am passing abcUrl value it is not parsing it properly in java, but when i am giving only one url it is working.

    like : <cfset abcUrl='ldap://abc.dce.com:1111'>

    That sounds like your java functionality isn't workin as you expect, not the coldfusion part.

    Anshul_ErAuthor
    Participant
    June 30, 2010

    No the java code is working fine as it has not been changed. I got the issue when i moved from CF8 to CF9.

    Adobe Employee
    June 30, 2010

    Can you post the java method signature? What issue do you get when you pass the first url?