Nicholas Lesiecki wrote:
> 
> Hello,
> 
> After much pain the answer comes:
> 
> call pageContext.pushBody();
> 
> the out object accessible thru pageContext becomes a BodyContent object.
> 
> BodyContent is *designed* to let you access the contents.
> 
> It's kind of a hack but it works.

I still don't see what is wrong with using the endXX method to test the
content produced by a tag. 

If you do it this way by getting a BodyContent, does the output still
get through to the endXXX method, or do you have to do all the tests on
the server side in the testXXX method?

It seems like you should match the pushBody() call with a popBody() at
the end if you want to ensure the content gets written back to the
client.

Jari
--
Jari Worsley
Senior Programmer
Hyperlink Interactive Ltd

Reply via email to