Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tag library bodyContent is null

843838Aug 17 2005 — edited Aug 17 2005
Hi,

I'm trying to greate a taglib that loops through the the body twice. There may be html in the body and I don't want that to be printed on the first iteration, only the second. I have the loop working fine I'm just stuck on the part about not printing the elnlosed html twice. How can this be achieved? I thought that I could maybe do something like:

public int doAfterBody() throws JspException {
try {
BodyContent body = getBodyContent();
body.clearBody();
.....

But getBodyContent() always seems to return null. Any ideas?

Thanks.

-Sam
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2005
Added on Aug 17 2005
1 comment
106 views