Hi Vincent, I just wanted to tell you that I finally found out that the popBody() method has to be called after the doAfterBody() method if this method returns "SKIP_BODY". Since this was the case with the Tag "FormTag" I was trying to test, putting the popBody() call immediately after the doAfterBody() call solved the problem. See also chapter 10.1.2.4 of the JSP 1.2 specification.
Regards, Vahan Harput ----- Original Message ----- From: "Vincent Massol" <[EMAIL PROTECTED]> To: "'Cactus Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, June 17, 2003 9:30 AM Subject: RE: RE: Cannot check the output of a JSP tag > > > > -----Original Message----- > > From: Vahan Harput [mailto:[EMAIL PROTECTED] > > Sent: 12 June 2003 20:44 > > To: [EMAIL PROTECTED] > > Subject: Re: RE: Cannot check the output of a JSP tag > > > > >Hi Vahan, > > > > > >I think your error has to do with your call to > > >this.pageContext.popBody(). Try putting it elsewhere. > > > > > > > Hi Vincent, > > > > I put it in the tearDown() method like in the sample > > TestSampleBodyTag.java. > > Unfortunately it did not make any difference. Do you have a specific > place > > in mind where to put this statement? > > > > I haven't researched the subject but when I tried your test, I put it > just after the setBodyContent(): > > tagContent = this.pageContext.pushBody(); > myTag.setBodyContent(tagContent); > this.pageContext.popBody(); > > ... and for some reason unknown to me it worked... :-) Not sure what > happened. I don't have the time right now to investigate further. If you > find the reason please do tell us. > > > >But, the easiest is for you to use Cactus 1.5dev and use the new > > >JspTagLifecycle class as explained here: > > > > > > >http://jakarta.apache.org/cactus/api/framework-13/org/apache/cactus/ext > e > > >nsion/jsp/JspTagLifecycle.html > > > > > >It really simplifies things. > > > > > > > I'll try it when a nightly build is available again. > > I've upload a manual build on the nightly build area. > > Thanks > -Vincent > > > > > >Thanks > > >-Vincent > > > > Regards, > > Vahan Harput > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
