CFC URL variable
I am having trouble with a URL varailble. Does anyone know how to send a URL variable to the query in a CFC. Here is what I have so far and it does not work. Thanks.
CFC:
<cffunction name="pagevideo" access="public" returntype="query">
<cfset var pagevideo="">
<cfif not IsDefined("URL.VideoID")>
<cflocation url="page.cfm?videoID=486">
<cfelse>
<cfquery name="pagevideo" datasource="videos">
SELECT video_path, ID, Video_Name,
FROM Video
WHERE ID = #URL.VideoID#
</cfquery>
</cfif>
<cfreturn aged240video>
</cffunction>
CFM page:
<cfset myObj = createObject("component","cfc.page") />
<cfset queryObj = myObj.pagevideo()>
<h2 >Page Header</h2>
<cfoutput><h2 >#queryObj.Video_Name#</h2></cfoutput>
