public static void parametersToAttributes(HttpServletRequest request){
  java.util.Enumeration<String> e=UtilGenerics.cast(request.getParameterNames());
  while (e.hasMoreElements()) {
    String name=e.nextElement();
    request.setAttribute(name,request.getParameter(name));
  }
}

public static void parametersToAttributes ( HttpServletRequest request ) { java . util . Enumeration < String > e = UtilGenerics . cast ( request . getParameterNames ( ) ) ; while ( e . hasMoreElements ( ) ) { String name = e . nextElement ( ) ; request . setAttribute ( name , request . getParameter ( name ) ) ; } }
put request parameters in request object as attributes .
