Well, I don't know about the Apache question (I'm pretty new to Apache myself), but your tag has a typo in it. Could that be the issue?
<%method> </%method> The / goes before the percent. Does that help? Jim Babcock wrote: > > I'm running the latest apache(2.2), mod_perl(2.02) and mason (1.32) and I'm > having two issues while I'm trying to follow the example from the mason book > (chap 8, apprentice.perl.org): > > <html> > <head> > <link rel="stylesheet" type="text/css" href="/resources/css/index.css" /> > > <title>NEOps: <& SELF:title &></title> > </head> > > <body> > <& header.html, %ARGS &> > <& menu.html, %ARGS &> > <& footer.html &> > > % $m->call_next; > > </body> > </html> > > <%method title> > Network Engineering and Operations > <%/method> > > gives me the error message: > > error: '<%' without matching '%>' at /usr/local/www/docs/autohandler line 21 > context: ... > 17: </html> > 18: > 19: <%method title> > 20: Network Engineering and Operations > 21: <%/method> > 22: > > code stack: /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Lexer.pm:402 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Lexer.pm:125 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Lexer.pm:355 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Lexer.pm:123 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Lexer.pm:99 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Compiler.pm:214 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Compiler/ToObject.pm:75 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Compiler/ToObject.pm:114 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Interp.pm:435 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Interp.pm:767 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Component.pm:333 > /usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Request.pm:422 > > My config is: > > <Directory /> > Options FollowSymLinks > AllowOverride None > Order deny,allow > Deny from all > </Directory> > > # > # Note that from this point forward you must specifically allow > # particular features to be enabled - so if something's not working as > # you might expect, make sure that you have specifically enabled it > # below. > # > > # > # This should be changed to whatever you set DocumentRoot to. > # > > PerlRequire /usr/local/www/cgi/lib/uses.pl > PerlSwitches -wT > > PerlSetVar MasonCompRoot /usr/local/www/docs > PerlSetVar MasonDataDir /usr/local/httpd/mason > > PerlSetVar MasonAllowGlobals $Schema > PerlSetVar MasonAllowGlobals $User > > PerlModule HTML::Mason::ApacheHandler > PerlModule CGI > > #PerlModule Apache::Const qw(NOT_FOUND) > > <FilesMatch "(\.html|\.css)$"> > SetHandler perl-script > PerlHandler HTML::Mason::ApacheHandler > </FilesMatch> > > <Directory "/usr/local/www/docs"> > > My second question has to do with the commented out section of the config. I > was trying to duplite the book's config for blocking direct access to non-top > level components, but the was an issue with the Apache::Constants module > being 1.x only and I can't figure out how to do this for 2.x apache. > > Thanks, > > Jimbus > > -- > ___________________________________________________ > Play 100s of games for FREE! http://games.mail.com/ > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Mason-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mason-users -- Doug Dawson Application Developer Physicians Mutual Insurance Company (402) 930-2432 UNIX is user friendly, it's just picky about who its friends are. ____________________________________________________________ This message and any attachments are confidential, may contain privileged information, and are intended solely for the recipient named above. If you are not the intended recipient, or a person responsible for delivery to the named recipient, you are notified that any review, distribution, dissemination or copying is prohibited. If you have received this message in error, you should notify the sender by return email and delete the message from your computer system.
begin:vcard n:Dawson;Doug tel;work:402.930.2432 x-mozilla-html:FALSE url:http://www.physiciansmutual.com org:;ETG adr:;;2600 Dodge St.;Omaha;NE;68131;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Programmer fn:Doug Dawson end:vcard

