Sorry, I was talking about the BeanUtil part in WW 1.2 / 1.3. Something like
BeanUtil.setProperties(ActionContext.getContext().getParameters(), bean_to_set_properties); When working with a bean to reflect a row in a Database, it's wrong to set String values for bean propertties to "" when the user does not fill in values for them. If there's no value filled in by the user it has to be NULL in the database and not "". There should be no difference between an Integer (delivered as NULL when empty) field and a String field (String name = null is legal). WW 1.2 handled empty bean String properties as "" which is wrong. As far as I can remember this was changed in WW 1.3. I started with WW 1.2 and had to fix this myself (still using this version for production because WW 1.3 logging didn't work with WLS). I'm talking about beans only. Regards, Lars > So WW1.3 takes [""] and sets null on a String property? > > > -----Original Message----- > > From: Lars Fischer [mailto:[EMAIL PROTECTED] > > Sent: Thursday, December 11, 2003 6:38 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [OS-webwork] Empty string property now "" > > instead of null? > > > > > > IMO it is essential that is is NULL. This has been a problem > > with WW 1.2. and has been fixed in 1.3. It's perfectly legal > > for a String to be null. > > > > If WW2 handles this as an empty String, it's a bug. > > > > > Hi, > > > > > > When a form field (single textfield) is not filled, the > > request param > > > is an empty string, which translates to an empty string array > > > (ParametersInterceptor), but my property setter is called > > with an empty > > > string. Should't that be null? > > > > > > Cheers, > > > Mathias > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: SF.net Giveback Program. Does > > > SourceForge.net help you be more productive? Does it help > > you create > > > better code? SHARE THE LOVE, and help us help YOU! Click Here: > > > http://sourceforge.net/donate/ > > > _______________________________________________ > > > Opensymphony-webwork mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > Does SourceForge.net help you be more productive? Does it > > help you create better code? SHARE THE LOVE, and help us > > help YOU! Click Here: http://sourceforge.net/donate/ > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork