I wonder if it is reasonable for setters to be overloaded.  I am facing the requirement for true Date and int values to be pre-populated in a ActionForm.  I know how to pre-populate, and would like to do so by using native Date and int values rather than converting them to strings first.  I have found that if I overload the setters, I get ServletExceptions.  These exceptions say that there are no getter methods defined for the properties when getter methods exist.
 
At this time, I have created a workaround: setXxxAsInt() or setXxxAsDate().  Am I to understand that overloading is not part of the general Sun Microsystems bean specification, and that my approach is correct?
 
 
Anthony
 
"When you don't know what you're doing, do it neatly."

Reply via email to