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 Thu, 10 Apr 2003 10:55:14 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 jpl@remotejava.com  2003-04-10 10:55 -------
I agree: the initial="" parameter could be used if someone wants the new behavior (or removed
if someone had it, but really meant the other thing). As it is now, I would have to change
my code in all the places where a check of DynaActionForm.get("...") against null appears.
The situation where null and "" would need to be distinguished is not common, but not unthinkable
either.

I can understand the benefit of fields initialization in real forms, but I also use DynaActionForms
for specifying an Action's supported GET parameters. Maybe this approach is not a good idea,
though?

---------------------------------------------------------------------
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