Re[2]: redirecting outside the Content handler

2002-11-14 Thread Mike P. Mikhailov
Hello Brett Sanger, Friday, November 15, 2002, 1:25:19 AM, you wrote: >> > $r->set_handlers('PerlHandler",\&My::Package::handler); >> >> set_handlers() should work. keep in mind that it's current not >> possible (IIRC) to set_handler() for the current phase. so, for the >> PerlHandler you'd wan

Re: redirecting outside the Content handler

2002-11-14 Thread Geoffrey Young
Each of these: $r->set_handlers(PerlHandler => 'My::Package'); $r->set_handlers(PerlHandler => 'My::Package::handler'); $r->set_handlers(PerlHandler => \&My::Package); $r->set_handlers(PerlHandler => \&My::Package::handler); give me: [error] Can't set_handler with that value Any ideas? yeah

Re: redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
> > $r->set_handlers('PerlHandler",\&My::Package::handler); > > set_handlers() should work. keep in mind that it's current not > possible (IIRC) to set_handler() for the current phase. so, for the > PerlHandler you'd want to do it from someplace else, like your > PerlAccessHandler or something.

Re: redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
"Narins, Josh" wrote: > > I think I know this one. > > #you might want to do this line, for edification if nothing else > my $list_ref = $r->get_handlers("PerlHandler"); > > $r->set_handlers('PerlHandler",\&My::Package::handler); Excellent! Thanks. One associated question: Is it possible to

Re: redirecting outside the Content handler

2002-11-14 Thread Geoffrey Young
e a coderef - $r->set_handlers(PerlHandler => 'My::Package'); works too. sorry for the confusion. --Geoff -Original Message- From: Brett Sanger [mailto:brs900@;email1.dss.state.va.us] Sent: Thursday, November 14, 2002 11:45 AM To: [EMAIL PROTECTED] Subject: redirecting o

RE: redirecting outside the Content handler

2002-11-14 Thread Narins, Josh
ss.state.va.us] Sent: Thursday, November 14, 2002 11:45 AM To: [EMAIL PROTECTED] Subject: redirecting outside the Content handler I have a few AccessHandlers that I'd like to redirect the user to the correct page to get access if they don't have it. I tried ErrorDocuments, but I hav

Re: redirecting outside the Content handler

2002-11-14 Thread Geoffrey Young
Brett Sanger wrote: I have a few AccessHandlers that I'd like to redirect the user to the correct page to get access if they don't have it. I tried ErrorDocuments, but I have multiple layers of authentication, and ErrorDocuments won't cascade. So I'm looking at switching the ContentHandler. i

redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
I have a few AccessHandlers that I'd like to redirect the user to the correct page to get access if they don't have it. I tried ErrorDocuments, but I have multiple layers of authentication, and ErrorDocuments won't cascade. So I'm looking at switching the ContentHandler. internal_redirect() won'