[please keep the thread on the list!]

Tofu Optimist wrote:
:(

[Tue Sep 02 15:22:53 2003] [error] [client
192.168.1.2] Can't locate object method
"construct_url" via package "Apache::RequestRec" at
/home/xxxxxxxx/mod-perl/Redirect.pm line 59.

Do I need to load it or something?

in mp2 you need to load modules that contain the methods that you want to use:


% lookup construct_url
To use method 'construct_url' add:
        use Apache::URI ();

See:
http://perl.apache.org/docs/2.0/user/porting/porting.html#Porting_a_Perl_Module_to_Run_under_mod_perl_2_0


You just call $r->construct_url. In your example
that would be:

   $r->headers_out->set(Location =>
$r->construct_url . "&r2=1");



__________________________________________________________________


Stas Bekman JAm_pH ------> Just Another
mod_perl Hacker
http://stason.org/ mod_perl Guide --->
http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org
http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com




--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info:
http://perl.apache.org/maillist/modperl.html




__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com


--


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to