A servlet that I am writing needs to access all 100+ POST parameters (filled in by a form): the parameters are different by type (text, option, select, etc.). With the param
If you make sure that the entity bean property names match exactly the request parameter names, then you could use BeanUtils#populate() of Apache Commons BeanUtils for that.
BeanUtils.populate(entity, request.getParameterMap());
That's all.
To get a step further, you can adopt a MVC framework which transparently maps request parameters to bean properties (the model) for you based on how the view is composed (even along with transparent conversion, validation and invoking bean action methods!), such as JSF or Spring MVC.