You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2006/11/23 11:24:01 UTC
RequestWrapper.get() doesn't consider local parameters
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