[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] "catch-all" in CGI::Application::Dispatch



Giannis Economou wrote:
> Hi...
> 
> I 've just used for the first time the CGI::Application::Dispatch module
> (ver. 2.0) for a CAP I'm writting.
> One thought. Wouldn't be nice to be able to provide a "catch-all"
> dispatching runmode while using the dispatch table in case no other
> entry of the table match?
> 
> Like having one more name value pair passed to the dispatch() method like:
>    no_match => { '/myapp/notfound/'},
> which will be used if nothing else matches.

That's a good idea. That would also solve some of the problems we
encountered since a script running under mod_cgi can't send a NOT_FOUND
return code to apache to let the normal 4xx processing happen. Let me
see what I can work up in the next couple of days.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.