Ahh... I'd use mid() instead of string.substring() ... it's less
likely to confuse an entry-level cf coder and although BlueDragon
likely implements strings similarly, I'm not certain it does. Same
with railo.ch or any other cfml engine that might come later.

> You are absolutely right. I needed substring method.

> --
> Oleg Gunkin
> Email: [EMAIL PROTECTED]
> Phone: (604) 666-9392
> Emerging Technologies / Pacific Web Services
> Information Technology Services
> Public Works and Government Services Canada (Pacific)

> -----Original Message-----
> From: S.Isaac Dealey [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 24, 2006 16:07
> To: CF-Talk
> Subject: Re: Creating Java String


>> 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 )".

> What do you need a Java string object for? I would bet
> that you don't
> need it.


s. isaac dealey     434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236201
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