Is there a way to capture the name of a file in Application.cfc based on a URL? So, if the URL happens to be www.somelink.toys.cfm, I would like Application.cfc to indicate to the user the the name of the page is "toys.cfm".
You could do that at the level of Application.cfc or at the level of the page itself.
1st case: doing it at the level of Application.cfc
Declare the current path as a request variable in onRequestStart, as follows
<cfargument name = "targetPage" type="String" required="true">
<cfset request.page = arguments.targetPage>
Then access the file name as follows in an arbitrary page.
2nd case: doing it directly, via the page itself