1 Reply Latest reply on May 25, 2006 9:07 AM by chris griffith

    dynamic put all the request parameters into a bean

    Eric Chow Apprentice

      Hello,

      How can I pass all the request parameters into a bean ?

      For example:

      class User {
      private int id;
      private String name;
      private String sex;
      private Dat birth;
      private boolean status;
      }


      How can I set all the request parameters into the User if those parameters name contains any (id, name, sex, birth and status) ?


      The utility prototype :

      public Object getFormBean(Class formClass, HttpServletRequest request) {