As the error message says, you don't have the ACTION attribute of CFOBJECT.
You might try just using createObject() as you do in execute.cfm.





> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Al Bupp
> Sent: Monday, August 04, 2003 8:14 AM
> To: [EMAIL PROTECTED]
> Subject: [CFCDev] CFOBJECT Validation Error
>
>
> Greeting Folks,
>
> I'm new to this list. Hate to jump right in w/ a question, but
> I'm sure you
> all know how it is sometimes...
>
> I've got a CF page which is attempting to create an object which
> maps to a
> java class which has been saved to the app's session scope. The CF code
> looks like this:
>
> In execute.cfm
> </cfscript>
> // instantiate response object
> Session.bapiResp = CreateObject("java",
> "com.backsoft.ws.BapiSalesorderCreatefromdat2ResponseBean");
> ret = Session.bapiResp.init();
>
> // call the business interface
> Session.bapiResp = impl.bapiSalesorderCreatefromdat2(bapiReq);
> </cfscript>
>
> In show_results.cfm
> <cfobject type="java"
> class="com.backsoft.ws.BapiSalesorderCreatefromdat2ResponseBean"
> name="bapiResp">
>
> This last line of code results in the following CF error message:
> <error>
> Attribute validation error for tag CFOBJECT.
> The tag has an invalid attribute combination: class,name,type. Possible
> combinations are:
> Required attributes: 'action,class,name'. Optional attributes:
> 'context,locale,server,type'.
> Required attributes: 'component,name'. Optional attributes: 'type'.
> Required attributes: 'name,webservice'. Optional attributes: 'type'.
> </error>
>
> Can anyone offer a suggestion about how to resolve this problem?
>
> Thanks in advance, Albert
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to