Ejemplo n.º 1
0
 /**
  * Return the request parameters as a Properties. Only the first value of multivalued parameters
  * is included.
  */
 Properties getParamsAsProps() {
   Properties props = new Properties();
   for (Enumeration en = req.getParameterNames(); en.hasMoreElements(); ) {
     String name = (String) en.nextElement();
     props.setProperty(name, req.getParameter(name));
   }
   return props;
 }
Ejemplo n.º 2
0
 String modifyParams(String key, String val) {
   Properties props = getParamsAsProps();
   props.setProperty(key, val);
   return concatParams(props);
 }