CF strings ARE Java Strings.  You needn't do anything special.

<cfset s = "my string" />
<cfoutput>#s.indexOf("s")#</cfoutput>

cheers,
barneyb

On 3/24/06, Oleg Gunkin <[EMAIL PROTECTED]> wrote:
> Can you please help me to create java String from coldfusion srting?
> I tried
>
> <cfset ul = CreateObject("java", "java.lang.String")>
> <cfset ul.init("#myString#")>
>
> but it returns the following error: "Unable to find a constructor for class 
> java.lang.String that accepts parameters of type ( 
> coldfusion.runtime.LocalScope )".
>
> --
> Oleg Gunkin

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236197
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to