cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <>
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);
            return value;

This leads to a problem in the following scenario:


If this ends up in a flowscript,


returns null.

Or am I doing something wrong?


-- Andreas

View raw message