[Mason] Multiple values in Mason 2.06
Dear, Thanks for taking the time to read this. I use $.args to access the multiple values. It seems that only lastest value was got. I'm not sure what happens. My test componment: eg/blog/comps/test.mc: Content: %init use Data::Dumper; print Dumper($.args-{'a'}); print 'br/'; print Dumper($m-req-param('a')); /%init http request: http://localhost:5001/test?a=1a=2 The output result: $VAR1 = '2'; $VAR1 = '1'; $VAR2 = '2'; /Heng -- 诸法从缘起,如来说是因。 彼法因缘尽,是大沙门说。 -- Fulfilling the Lean Software Promise Lean software platforms are now widely adopted and the benefits have been demonstrated beyond question. Learn why your peers are replacing JEE containers with lightweight application servers - and what you can gain from the move. http://p.sf.net/sfu/vmware-sfemails ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users
Re: [Mason] Error while loading app.psgi: Can't locate object method expand_to_plugins
Hello, I really miss the 'Mason::Plugin' role. It's OK now. Thanks! /Heng 于 2011年04月15日 01:34, Jonathan Swartz 写道: What does your plugin class look like? Does it contain with 'Mason::Plugin';? On Thu, 14 Apr 2011 13:15 +0800, Beckheng Lambi.ken@gmail.com wrote: Hi, I want to add customize filter. I added the plugin in app.psgi via '+IiBlog::Filters'. But it show me the message as title said. Following plugins what I use. my @plugins = ('PSGIHandler', 'HTMLFilters', '+IiBlog::Filters'); Would somebody tell me why? /Heng -- 诸法从缘起,如来说是因。 彼法因缘尽,是大沙门说。 -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users
[Mason] Error while loading app.psgi: Can't locate object method expand_to_plugins
Hi, I want to add customize filter. I added the plugin in app.psgi via '+IiBlog::Filters'. But it show me the message as title said. Following plugins what I use. my @plugins = ('PSGIHandler', 'HTMLFilters', '+IiBlog::Filters'); Would somebody tell me why? /Heng -- 诸法从缘起,如来说是因。 彼法因缘尽,是大沙门说。 -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users
Re: [Mason] HTML::Mason hosting with cpanel
Under CGIHandler, I use .htaccess file as below to make it work fine. for example: RewriteEngine on RewriteCond %{REQUEST_URI} !/cgi-bin/ RewriteRule (.*\.html)$ /cgi-bin/mason_handler.cgi/$1 [QSA,PT] #ErrorDocument 404 /cgi-bin/mason_handler.cgi/${REDIRECT_URL} FilesMatch \.html$ Action html-mason /cgi-bin/mason_handler.cgi AddHandler html-mason .html /FilesMatch FilesMatch ^/cgi-bin/ RemoveHandler .html /FilesMatch FilesMatch (\.mpl|handler)$ Order allow,deny Deny from all /FilesMatch /Heng David Silva wrote: Hi, that was my first try.. html-mason with extension .html but the result is http://davidslv.com/mason.html 2010/1/29 Beckheng Lam bi.ken@gmail.com mailto:bi.ken@gmail.com Hi, I name it 'html-mason'. /Heng David Silva wrote: Hi, i'm with some troubles with my hosting, i can't acess the server by ssh, neither change httpd.conf or insert an handler.pl http://handler.pl. The only thing i have is Cpanel and the sysadmin says i can configure it at my own risk, in Cpanel i have the Apache Handlers option, but i don't know what is the name of the handler to write on it. Hope you can help me! Thank you -- David Silva - http://davidslv.com/ -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com -- David Silva - http://davidslv.com/ -- Perl乐事 -- http://www.perlersh.org 我的博客 -- http://www.perlersh.org/blog.html 揭谛揭谛,波罗揭谛,波罗僧揭谛,菩提萨婆诃。 -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users
Re: [Mason] HTML::Mason hosting with cpanel
Hi, I name it 'html-mason'. /Heng David Silva wrote: Hi, i'm with some troubles with my hosting, i can't acess the server by ssh, neither change httpd.conf or insert an handler.pl http://handler.pl. The only thing i have is Cpanel and the sysadmin says i can configure it at my own risk, in Cpanel i have the Apache Handlers option, but i don't know what is the name of the handler to write on it. Hope you can help me! Thank you -- David Silva - http://davidslv.com/ -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users -- Perl乐事 -- http://www.perlersh.org 我的博客 -- http://www.perlersh.org/blog.html 揭谛揭谛,波罗揭谛,波罗僧揭谛,菩提萨婆诃。 -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users
[Mason] dhandler work with .htaccess
I can use .htaccess only. So I must use FilesMatch instead of LocationMatch. While access a file not exists, Apache throw 404 Not Found Error. At the end, I use RewriteEngine.Write the rule for the .html file. It seems that dhandler can work fine.:) This approach depends on the mod_rewirte. Is there any idea reduce depending? -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users