You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2002/06/30 05:02:19 UTC
cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/bean DefineTag.java
craigmcc 2002/06/29 20:02:19
Modified: src/share/org/apache/struts/taglib/bean DefineTag.java
Log:
Make <bean:define> less sensitive to containers that provide a zero-length
(but non-null) body content on a tag like:
<bean:define id="test1_boolean" name="test1" property="booleanProperty"/>
that does not have any body at all. Tomcat 4.0.4 (and earlier), and probably
Tomcat 3.2.x and 3.3.x behave in this manner. Tomcat 4.1.3 works even
without this patch.
PR: Bugzilla #10285 William Milbratz <billbratz at participate.com>
PR: Bugzilla #10294 Mete Kural <metekural at yahoo.com>
Revision Changes Path
1.18 +7 -4 jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTag.java
Index: DefineTag.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/DefineTag.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- DefineTag.java 23 Jun 2002 00:07:16 -0000 1.17
+++ DefineTag.java 30 Jun 2002 03:02:19 -0000 1.18
@@ -228,6 +228,9 @@
if (body != null) {
body = body.trim();
}
+ if (body.length() < 1) {
+ body = null;
+ }
}
return (SKIP_BODY);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>