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

Re: [cgiapp] CGI::Application::Dispatch and second level subdirectories


Hi Mike

> On 6/13/07, Simon Rees <suppressed> wrote:
> > <Location /srees/connectm_tracker>
> >   SetHandler perl-script
> >   PerlHandler CGI::Application::Dispatch
> >   PerlSetVar CGIAPP_DISPATCH_PREFIX  Newforms::MembersCGIApp::Dispatch
> >   PerlSetVar CGIAPP_DISPATCH_DEFAULT /public/front
> >   PerlSetVar CGIAPP_DISPATCH_DEBUG 1
> > </Location>
> >
> > When I try to request http://test.server/srees/connectm_tracker I get the
> > following error message:
> > [Dispatch] ERROR: 'Can't find module
> > Newforms::MembersCGIApp::Dispatch::Connectm::Tracker' for request
> > '/srees/connectm_tracker/'
> > Whereas I would expect it to use the
> > Newforms::MembersCGIApp::Dispatch::Public module. So it looks like
> > C::A::Dispatch is considering connectm_tracker to be the module name.

> On Thursday 14 June 2007 01:08, Mike Friedman wrote:
> Is Newforms::MembersCGIApp::Dispatch::Public your CA::Dispatch
> subclass? If so, your PerlHandler should be pointing to that, not
> CA::Dispatch itself.

Newforms::MembersCGIApp::Dispatch::Public is a CGI::Application subclass which 
I'm expecting to be called by CA::Dispatch. I'm not subclassing CA::Dispatch 
- yet...

cheers Simon
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Simon Rees  |  tech-lists @t zodiac2000 co uk  |
ORA-03113: end-of-file on communication channel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
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.