> correct?

Yes - all fine and dandy :)

Looks like your Mod_Perl is b0rken. line 114 of Apache::MVC is just
calling some run of the mill mod_perl that is supposed to
JustWork(TM).

Yeah, again, sorry for the time between posts, I have been working on this sporadically. Anyways, I am not the nerd I used to be, and no longer have the patience to f-around with the nuances of mod_perl builds.... instead, I got my little examples working with our ol' friend CGI. (This crAPP is going to be on an intranet with very low traffic, so cgi will fly).

But………….. problems with the actions. In your previous message, you said one should create actions in packages like so:

package BS::Actions::Provider;
use Maypole::Application;
....

BS::Actions::Provider dame_chicas_con_grande_culos() :Exported
{
....

}

although this seemed somewhat strange to me, since is deviates from Perl's syntax, I did what any modern day naïve "Google Programmer" would do, and tried it; without having intimate knowledge of the underlying semantics

But this results in a syntax error….
So, I tried the more-sense-making:

sub dame_chicas_con_grande_culos_y_dos_tacos_de_pastor_tambien() :Exported
{
....

}

which gives a playa an "Invalid CODE attribute" error.
The work around in the FAQ says use a BEGIN block; this does not work either…

my code is as follows:

#!/usr/bin/perl
use strict;
use warnings;
use BS::Web::Driver;
BS::Web:: Driver ->run();


my "driver":

package BS::Web::Driver;
use strict;
use warnings;
use base 'CGI::Maypole';
use Maypole::Model::CDBI::Plain;
use BS::Actions::Grrr;

       BS::Web::Driver->config->model("Maypole::Model::CDBI::Plain");
       BS::Web::Driver->setup([qw/BS::DB::Provider/]);
       BS::Web::Driver->config->uri_base("http://localhost/bs/bs.cgi";);
       BS::Web:: Driver ->config->template_root("/home/dh/bs/templates");
1;
and my action:

package BS::Actions::Grrr;
use Maypole::Application;
   sub tester :Exported {
        my ($class,$r) = @_;
        #get provider into and cats etc...
   }

1;



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to