Re: Invoke Java method

2011-08-19 Thread Isidro Pimentel
Thank you soo much for your help. I am starting to get it but now I am getting another error Missing argument name. When using named parameters to a function, every parameter must have a name. (JavaCast(string,getPageContext().getServletContext()),JavaCast(string,

Re: Invoke Java method

2011-08-19 Thread Leigh
Think about what the code is doing for a second :) It is still trying to pass in all strings instead of a mix of strings and complex objects. It may not seem like it, but using a java method is not much different than calling a plain old CF function. Both define what arguments they expect as

Invoke Java method

2011-08-18 Thread Isidro Pimentel
Hello, I am trying to invoke a java method using the code below but keep getting method was not found. cfscript x = CreateObject(java, com.something.something.int.classname); x.init(); ret = x.sendResponse(JavaCast(string, mail)); /cfscript The cfdump of x I can see the method

Re: Invoke Java method

2011-08-18 Thread Leigh
What is the signature of the method? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: Invoke Java method

2011-08-18 Thread Isidro Pimentel
sendResponse(ServletContext servletContext,HttpServletResponse response,String authnContext,String mail,MapString, ListString attributes) On 8/18/11 10:32 AM, Leigh cfsearch...@yahoo.com wrote: What is the signature of the method?

Re: Invoke Java method

2011-08-18 Thread Leigh
sendResponse(ServletContext servletContext,HttpServletResponse response,String authnContext,String mail,MapString, ListString attributes) Then you cannot just send a single string. You need to pass in five (5) arguments. Otherwise, CF will not be able to find the method because it is a

Re: Invoke Java method

2011-08-18 Thread Isidro Pimentel
Thank you very much. I am still having a little difficulty. Could you please tell if this is how it is suppose to look? sendResponse(JavaCast(string,Value_servletContext),JavaCast(string,V alue_response),JavaCast(string,value_authnContext),JavaCast(string, SESSION.mail),JavaCast(structure,

Re: Invoke Java method

2011-08-18 Thread Leigh
No. The method expects several complex objects, but you are passing in mostly strings. You need to pass in the correct type of objects. ie ServletContext ** complex object , HttpServletResponse ** complex object , String ** plain string , String ** plain

Re: Invoke Java method

2011-08-18 Thread Leigh
JavaCast(string,Value_servletContext) JavaCast(string,Value_response) Also are Value_servletContext and Value_response actual +variables+ or just strings like they seem. It is difficult to tell. ~| Order the Adobe

Re: Invoke Java method

2011-08-18 Thread Isidro Pimentel
Thank you so much for your help(hand-holding on this). They are strings. Additionally, all of those values for now are null except mail which is a session variable. On 8/18/11 2:09 PM, Leigh cfsearch...@yahoo.com wrote: JavaCast(string,Value_servletContext) JavaCast(string,Value_response)

Re: Invoke Java method

2011-08-18 Thread Leigh
They are strings. Additionally, all of those values for now are null except mail which is a session variable. I am not sure what you mean by null in this context ;) Are you saying you are not sure what to pass into the method OR that the method allows to skip those parameters and pass in