tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54144] Processing of java.io.Reader in "Out" tagplugin
Date Thu, 15 Nov 2012 05:03:00 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54144

--- Comment #1 from Konstantin Kolinko <knst.kolinko@gmail.com> ---
3. JSTL spec says (under "Null & Error Handling"):
"If no default value is specified, it itself defaults to an empty string."

In the current code:
a) A null is used instead of "" as the value of strDefName.
b) I suspect that the following check for "no default value specified" is
incorrect:
            ctxt.generateJavaSource("if(");
            ctxt.generateAttribute("default");
            ctxt.generateJavaSource(" != null){");

One has to check whether the attribute is present, instead of checking whether
its value is null.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message