
June 3rd, 2005, 01:08 AM
|
|
Contributing User
|
|
Join Date: Dec 2003
Posts: 50
Time spent in forums: 5 h 21 m 51 sec
Reputation Power: 5
|
|
CFC Problem "The tag requires the attribute(s): METHOD"
Hi all...well i'm kindda trying to build a cfc....the it promt out "The tag requires the attribute(s): METHOD" on
the which called the CFC..well can anybody help me with this problem....attach with this msg i attach my code..
The cfc code
Code:
<cffunction name="getspecificempemergencycon" access="public" returntype="query">
<cfargument name="emp_no" default="1">
<cfset var specificempemergencycon = "">
<cfquery name="specificempemergencycon" datasource="epa">
select * from employeekin
where emp_no = #URL.emp_no#
</cfquery>
<cfreturn specificempemergencycon>
</cffunction>
</cfcomponent>
the code for calling the cfc
Code:
<cfparam name="URL.emp_no" default="">
<cfinvoke component="cfcomponent.empemergencycon"
method="getspecificempemergencycon"
returnvariable="specificempemergencycon">
<cfinvoke name="emp_no" value="#URL.emp_no#">
</cfinvoke>
<html>
<head>
</head>
<body>
<cfoutput query="specificempemergencycon">
#specificempemergencycon.emp_no#
</cfoutput>
</body>
</html>
|