I'm using cfc's as controllers for my application by setting access="remote" and calling the cfc directly from the browser like so-
http://localhost:8500/someApp/someCFC.cfc?method=someFnc

My question to the forum is- if a curious user tries to "try" typing in some arbitrary method name in the URL, the CFC will throw an application error- "The method 'someMethod' could not be found in component",
How can I handle this gracefully and redirect the user to a default method or another page?

Would this mean I will have to put code in my CFC outside of function bodies?...
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to