Yes you will want to use a listener or a filter to validate the url parameters.

--Kurt

On Sun, May 2, 2010 at 7:36 PM, Matthew <[email protected]> wrote:
> Hi all
>
> I have the following:
> <call-method bean="CountryService"
> method="getProductsMatchingCountryId" args="countryId=$
> {event.countryId:0}" resultArg="qProductsMatchingCountryId" />
>
> Recently search engines have been hitting the event as such
> www.website.com/index.cfm?countryId=
> This causes the service object to throw an error due to none numeric
> value.
>
> I thought the 0 as a default would solve this but of course this
> didn't solve the problem because a default is only used if the
> variable isn't defined rather than if it isn't numeric.
>
> Is there a way to test for a numeric. I'm guessing I'll have to use a
> listener right?
>
> Cheers
> Matthew
>
> --
> You received this message because you are subscribed to Mach-II for CFML list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>
> ***New URLs as of April 29th, 2010***
> SVN: http://svn.mach-ii.com/machii/
> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
>

-- 
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to