OK I figured out a way that works. I changed my internal_redirect component
to make a subrequest call and have the subcomponent call
$r->internal_redirect. In this way $r is a Apache2::SubRequest in the
subcomponent. Let me know if this works for you. This is what the code
looks like:
<%init>
my $url = $m->scomp('/lib/url.mhtml', %ARGS);
$m->comp('.internal_redirect', url => $url);
$m->auto_send_headers(0);
$m->clear_buffer;
$m->abort;
</%init>
<%def .internal_redirect>
<%args>
$url
</%args>
<%init>
$r->internal_redirect($url);
</%init>
</%def>
On 12/20/05 6:12 AM, "Scott Lanning" <[EMAIL PROTECTED]> wrote:
> On Tue, 20 Dec 2005, James Messrie wrote:
>> Anytime I access a component that calls $r->internal_redirect, the browser
>> just hangs indefinitely. I know that Apache2::SubRequest now has the
>> internal_redirect method but $r is an Apache2::RequestRec object. How can I
>> get this to work?
>
> I hope you do. I tried porting Bricolage to mod_perl2 but I found
> that happening - it started up, but then... nothing. Maybe something
> like this had something to do with it. Bricolage does a lot of redirecting,
> though not internal_redirect.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users