----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

on 2/19/00 3:47 PM, James Pitman <[EMAIL PROTECTED]> wrote:

> I have read just about
> every FAQ and mail list archive I can find and I have not been able to
> resolve this issue.

Dude...Turbine already has an excellent class that works just fine with
this...

<http://www.working-dogs.com/turbine/cvsweb/index.cgi/turbine/src/java/org/a
pache/turbine/util/ParameterParser.java?rev=1.9&content-type=text/x-cvsweb-m
arkup>

        Enumeration names = req.getParameterNames();
        if ( names != null )
        {
            while(names.hasMoreElements())
            {
                tmp = (String) names.nextElement();
                this.put( convert(tmp), (Object) req.getParameterValues(tmp)
);
            }
        }

And to pull something out...

    public String getString(String name)
    {
        try
        {
            String value = null;
            Object object = this.get(convert(name));
            if (object != null)
                value = ((String[])object)[0];
            return value;
        }
        catch ( ClassCastException e )
        {
            return null;
        }
    }

-jon

-- 
Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to