<!--- 
 Filename: UsingFilmDataCFC1.cfm
 Author: Nate Weiss (NMW)
 Purpose: Uses the FilmDataCFC component to display a list of films
--->

<html>
<head><title>Using FilmDataCFC</title></head>
<body>

<h3>Orange Whip Studios Films</h3>

<!--- Invoke the ListFilms() method of the FilmSearchComponent --->
<cfinvoke component="FilmDataCFC1" method="listFilms"
 returnVariable="filmsQuery">
  <cfif isDefined("url.actorID") and isNumeric(url.actorID)>
    <cfinvokeargument name="actorID" value="#url.actorID#">
  </cfif>
</cfinvoke>

<!--- Now output the list of films --->
<cfoutput query="filmsQuery">
 <a href="UsingFilmDataCFC1_Detail.cfm?FilmID=#FilmID#">#MovieTitle#</a><br>
</cfoutput> 

</body>
</html>
