Hi,
I would just like to state the specs of JSP
The getProperty & setproperty can take only strings, they have to be sent
strings, and should return strings
this is http specisific
Hope this clears up a bit,
Regards Amit
> -----Original Message-----
> From: Kevin McEntee [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 25, 1999 2:16 AM
> To: [EMAIL PROTECTED]
> Subject: Overloading Bean Setter and JSP Introspection
>
> 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
===========================================================================
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