|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Array with CFX tags
I created an Array in my java file and I wanted to pass it with the response.setVariable("array", arrayData) to my array in coldfusion but my java compile wont let me compile
my error is: c.java:56: setVariable(java.lang.String,java.lang.String) in com.allaire.cfx.Response cannot be applied to (java.lang.String,java.lang.String[]) response.setVariable("array", data); ^ 1 error Can someone help me? ![]() |
|
#2
|
|||
|
|||
|
Can't help on this one, I've never written a Java CFX tag. Is this not something that you can just write a Java class for and then call the class directly using createObject()?
|
|
#3
|
|||
|
|||
|
the method response.setvariable(String, String) only accepts java String objects as argument, you are passing a java String array like String[], that is the problem. try to conver your String[] to String only
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Array with CFX tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|