Hi Shyamala,

I think you put a wrong title in your email .... I have taken the liberty to
rename it "[cactus] Help on unit testing of JSP tags".

The short answer: Cactus 1.0 does not fully support unit testing of JSP
tags. We are still working on how to support this fully.
Longer answer : With the current 1.0 version you can unit test JSP tags that
extend TagSupport but not JSP that extends BodyTagSupport because I don't
know yet how to pass a bodyContent object to the Tag being tested. If you
find a way please tell me !

There is no example yet. You must extend JspTestCase. Then in your testXXX()
methods you have access to a pageContent object that you can pass to your
tag. Please understand that this is still untested grounds ... but I'll be
very happy to get your feedback and results on that !

Note: if you just want an example of using the JspRedirector there is one in
the sample that comes with the Cactus distribution.

Thanks
Vincent.

----- Original Message -----
From: "Narasimhan, Shyamala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 2:09 PM
Subject: RE: [VOTE] add JPath to sandbox and Dmitri as a committer to
jakarta-commons-sandbox


> Hi
>
> I searched the commons website and all the downloads but couldnt find a
full
> working example of testing jsp tags using the jspRedirector... can
somebody
> please give me some example jsp and a unit test for that using the jsp
> redirector.
>
> thanks
>
> shyamala.


Reply via email to