You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/04/10 03:52:49 UTC
DO NOT REPLY [Bug 18888] New: -
DynaActionForm.get("param") returns an empty string; used to return null
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18888
DynaActionForm.get("param") returns an empty string; used to return null
Summary: DynaActionForm.get("param") returns an empty string;
used to return null
Product: Struts
Version: 1.1 RC1
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Controller
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: jpl@remotejava.com
I tried to upgrade from 1.1b2 to 1.1rc1 today. My application became broken because of the apparent change in behavior of DynaActionForm. The get method used to return null if a parameter declared as form property was not provided by the client. As of 1.1rc1, it returns an empty string. I'd say that the "return null" behavior was better, as it allowed to differentiate between an empty value and no value at all. Note that neither of these behaviors is well documented in DynaActionForm's API. I am entering this as a bug because it leads to regression problems and I could not find any justification for the change in the mailing list archive.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org