If you would like to condense your arguments again, you can pass a 
struct into Java just fine.  Just handle it as a java.util.Hashtable.  
You can also handle ColdFusion arrays as java.util.Vectors.

http://www.markme.com/cantrell/archives/002763.cfm

Christian

On Monday, August 25, 2003, at 02:35 PM, Bosky, Dave wrote:

> The problem seemed to be with the following line.
>  public String[] setDecryptedData(String[] args) {}
>
> Cold Fusion doesn't seem to know what 'String[] args' is.
>
> I changed the line to the following and it worked like a dream.
>  public String[] getDecryptedData(String ccName, String ccType, String
> ccNumber, String ccExpir, String ip){}
>
>
> -----Original Message-----
> From: Paul Hastings [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 2:09 PM
> To: CF-Talk
> Subject: Re: Using a java class via cfobject --- help?
>
>
>> I have written a simple java class that encrypts strings, I need to
>> pass
> in
>> some strings and return an array of strings.
>> Am I missing something? What else is necessary to use this class in
>> CF?
>
> not sure this is your case but cf maps java arrays to lists (if i 
> recall
> rightly) & if that array is manipulated in place, cf will never see it 
> (a
> copy is passed to java).  so either write a java wrapper to handle this
> (pass the copied array back to cf) or re-write the class to 
> accept/return
> lists.
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to