This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: 2 patches
per@bothner.com wrote:
>
> Marco Vezzoli wrote:
> > In a previous mail I said I couldn't find
> > 2nd patch: HTTP.scm
> > I added two methods I use very frequently in jsp/servlets.
>
> > - (define (request-parameters (name :: <String>)) :: <java.util.Vector>
> > - (invoke (get-request) 'getParameterValues name))
>
> The return-type <java.util.Vector> seems strange. Shouldn't it be
> <java.lang.String[]>?
Yes.
>
> Perhaps the Kawa value should return multiple values?
> (In Qexo that would be a sequence of string values.)
Could be a good solution -- it will be possible to iterate with the for
statement.
I updated my code with this:
(define (request-parameters (name :: <String>))
(make <gnu.mapping.Values>
(invoke (get-request) 'getParameterValues name)))
--
(--cafe babe--)
Marco Vezzoli marco.vezzoli@st.com
CR&D Intranet Developement STMicroelectronics
tel. +39 039 603 6852 fax. +39 039 603 5055