The Cactus sample is meant to be run from Ant, not from the browser.
Install Ant first by following the instructions on the Cactus web site and
then open a shell, go to the build directory under
<cactusinstall>/sample/build and type 'ant tests' (you can type 'ant usage'
to get a list of Ant targets you can run).

Thanks
Vincent.

----- Original Message -----
From: "Narasimhan, Shyamala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 5:09 PM
Subject: RE: [cactus] Help on unit testing of JSP tags


> How do i use the JspRedirector... ie... how do i run the sample given in
the
> distribution from the browser... ie. is there something like the
TestServlet
> for jsps
>
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 04, 2001 9:37 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [cactus] Help on unit testing of JSP tags (WAS Re: [VOTE]
> add JPath to sandbox and Dmitri as a committer to
> jakarta-commons-sandbox)
>
>
> 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