Not finding what you are looking for? Request a recipe!
There are many ways to filter out spams such as using captcha (to make sure only humans can post) or hidden text field via CSS (which catches bots when that field is filled in) or a simple math like 2 + 3 = ?. Each has its pros and cons. There is another way that I recently discovered and find very ...
Use regular expression to trim off the unwanted characters
Validate the request to make sure that it in fact comes from your site.
Use method injection to inject a method into the object at runtime. This method contains predefined codes to retrieve private variables.
Use coldfusion.server.ServiceFactory java class
We can use try catch to catch this error, then increase the request timeout to give us enough time to log it, email it and display a nicer error message