struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18888] - DynaActionForm.get("param") returns an empty string; used to return null
Date Tue, 13 May 2003 16:21:59 GMT
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





------- Additional Comments From mohankishore@yahoo.com  2003-05-13 16:21 -------
IMHO - Feel something should be changed - either the documentation, indicating 
the new behaviour in more detail, or/and the implementation. As the reporter 
had indicated, the DTD seems to say that the property will be initialized to 
null by default, while it actually is being initialized to a blank string.

To answer the previous comment, the 'size' parameter can still be used. When 
the size parameter is used, the patch looks for the 'initial' parameter too. 
If 'initial' is not provided, all elements are initialized to null. 
If 'initial' is blank, all elements are initialized using a no-args 
constructor. Else, using ConvertUtils class.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message