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
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Vincent Massol
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... sbt
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Vincent Massol
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... sbt
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Jari Worsley
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... sbt
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Vincent Massol
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... sbt
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Jari Worsley
- RE: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Nicholas Lesiecki
- RE: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Jari Worsley
- RE: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Nicholas Lesiecki
- Re: new com.sun.jsp.compiler.JspReader( ((JspTestCase)th... Jari Worsley
