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/06/09 11:27:58 UTC
DO NOT REPLY [Bug 20605] New: -
tag throws exception when it has a body which may be empty
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=20605>.
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=20605
<bean:define> tag throws exception when it has a body which may be empty
Summary: <bean:define> tag throws exception when it has a body
which may be empty
Product: Struts
Version: 1.1 RC1
Platform: All
OS/Version: Other
Status: NEW
Severity: Minor
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: takehiko.yokota@toshiba.co.jp
In the case that <bean:define> tag has a content body which includes
another custom tag, it may throw exception like 'Define tag can contain
only one of name attribute, value attribute, or body content'.
For example, I wrote as follows:
<bean:define id="value" type="java.lang.String"><bean:write name="bean"
property="value"/></bean:define>
When the length of a property "value" of a Bean "bean" is not zero,
the <bean:define> works well, but when the length of "value" is zero,
<bean:define> tag throws exception.
The reason is that <bean:define> considers a zero-length body to be an
empty body.
To avoid this problem, I tried to specify a "value" attribute to the define tag,
but a define tag which has a body content can have neither a name attribute
nor a value attribute. I hope that a define tag which has a content body
also be able to have a "value" attribute, ant it is used on behalf of
a content body when the length of the content body is zero.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org