My question is, this syntax seems overcomplicated. Is there a better simpler way to accomplish what I am trying to do? I could use request.getParameter() for each value passing along as seperate args - but I kinda need all the 25 or so form field values in the saveStuff() function and functions with 25+ arguments scare me...
should I just pass along the whole HttpServletRequest object to saveStuff()? how is this usually done, or is it not?
the hibernateDAO.setAddress() method expects a String, I can't change that.
Yes, they generally follow the bean pattern and do not include any processing. Their purpose is to transfer data in an agnostic manner (in other words, not tied to a particular UI, or to a particular DB, or a particular framework, or a particular anything).
Joined: Oct 04, 2006
thanks, what you are telling me is in line with the code I was building off of. The original dealt with a form with 3 fields, but mine has 30, so I tried to find something smoother.
If someone wants to add a field to the registration form, right now we have to change FIVE files but I will try to resist re-inventing the wheel.