See:

    http://search.cpan.org/perldoc/Mason::Plugin::PSGIHandler#Run_parameters

On Apr 23, 2011, at 7:23 AM, Beckheng Lam wrote:

> 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=1&a=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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to