Hi, I am inclined to say that this may be the supposed behaviour(no idea why
it worked in TC3.2.4:). You may want to define the body-content to be 'jsp'
or 'tagdependent' in your tld for the specific tag. After all,
BodyTagSupport is most suited(meant) for buffering the body content. If the
body content is 'empty', the default setBodyContent() in BodyTagSupport will
not be invoked...
-Yan Lin
Sun Certified J2EE Web Component Developer
http://j2e-translate.sourceforge.net (need help)
-----Original Message-----
From: Carl Olivier [mailto:carl@(protected)]
Sent: April 29, 2004 09:10
To: 'tomcat-user@(protected)'
Subject: BodyTagSupport problem in TC5.019
Greetings.
Not sure if anyone knows about or has fixed this bug in Tomcat 5.019:
(This was not present in TC 3.2.4):
In BodyTagSupport
The method getPreviousOut() throws a NullPointerException if the tag does
not contain any content.
i.e.
<x:myBodyTag /> throws an exception
<x:myBodyTag></x:myBodyTag> throws an exception
<x:myBodyTag> </x:myBodyTag> works fine
Thanks in advance,
Regards,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)