I have a bean where I have two setter functions with the same name but
different argument types.

setShoeStartDate( String startDate )
and
setShoeStartDate( Date startDate )

I have a form element: <input type='text' name='shoeStartDate'>

The bean introspection using jswdk-1.0 does not cause either of the
setShoeStartDate functions to be called.  Only if I eliminate the
setShoeStartDate function that takes a Date object will the
setShoeStartDate function that takes a String argument get called.

Is this expected behavior?  Is overloading bean setter functions just a
bad idea?

- Kevin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to