beans, beans, they're good for your heart (tms)

1999-08-26 Thread Frank Starsinic
i noticed that when using beans, they automatically get populated from a webpage Form when the form field names are the same as the bean properties, and hence, good for your heart. this works for both Integer and String types in my test example. for some reason, a Date type is not working. does

Bean props from params [Was: Re: beans, beans, they're good for your heart (tms)]

1999-08-27 Thread JonTom Kittredge
Frank, I think that what you're running into are the limitations of assigning properties from a string value. From what I understand, JSP is effectively doing a setProperty() on the request parameters that match properties in your bean, but remember that these parameters are passed as Strings. I

Re: Bean props from params [Was: Re: beans, beans,they're good for your heart (tms)]

1999-08-27 Thread JonTom Kittredge
Sorry, In my last reply, I wasn't "focused" on the important fact that this date value is coming from a webform. What you would really want in this case is a way to specify a nested setProperty. So let's say you create a bean class that can represent a date and has separate numeric properties for