Chunshen (Don) Li wrote:
> Oops, Java was not a friend of mine :)
> Same result same err msg after using javaCast string function.

I just got an email from Rafael Quinones confirming that JavaCast() should work:

<cfset DBpassword="mypassword">
<cfscript>
  factory = CreateObject("java", "coldfusion.server.ServiceFactory");
  ds_service = factory.datasourceservice;
  dsources = ds_service.datasources;
</cfscript>
<cfset encryptedDBpassword = #ds_service.encryptPassword(JavaCast("String", "#DBpassword#"))#>

Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to