cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject RequestWrapper.get() doesn't consider local parameters
Date Thu, 23 Nov 2006 10:24:01 GMT
Hi Cocoon devs,

I wonder if this is a bug or intentional:

RequestWrapper.get() always delegates the parameter retrieval
to the req field

    public Object get(String name) {
        return this.req.get(name);
    }

whereas getParameter() also considers "local" parameters:

    public String getParameter(String name) {
        String value = this.parameters.getParameter(name);
        if (value == null && this.rawMode == false)
            return this.req.getParameter(name);
        else
            return value;
    }


This leads to a problem in the following scenario:

  cocoon://...?xxx=yyy

If this ends up in a flowscript,

  cocoon.request.get("xxx")

returns null.

Or am I doing something wrong?

TIA!

-- Andreas


Mime
View raw message