I'm not very happy about changing our Request interface. The information you need to get a parameter map is already in the Request object. You can get all parameter names and all values for one parameter.
What do you think of adding a static helper method somewhere? Carsten Stephan Coboos wrote: > > > > Stephan Coboos wrote: > > > in my opnion it would be nice to have a method like getParameterMap() > from > > > Servlet programming which returns all request parameters as name value > pairs > > > in a hash map. This method should reside in interface > > > org.cocoon.apache.environment.Request oder ....http.HttpRequest. > > > > Unfortunately it is possible to have more than one value for a single > > parameter. > > Yes. In Servlet programming, too. Here, a string array would > returned. Here > is a snipplet from the J2EE javadoc: > > Returns: > an immutable java.util.Map containing parameter names as keys and > parameter > values as map values. The keys in the parameter map are of type > String. The > values in the parameter map are of type String array. > > It would be possible and standarized ;-)) > > Thank you. > > Regards > Stephan > >
