Somehow when running the Cactus Sample in Ant, I've problem building for my
version of the Servlet API 2.2.

The warning given is that "servlet22.jar" is not defined, yet I have defined
it in my build.properties.

junit.jar = c:\jar\junit.jar

# Note: If you want to build only for a given servlet API, just comment the
#       properties for the servlet jar that you don't want to build for. For
#       example if you don't want to build the Servlet 2.2 API, just comment
#       the "servlet22.jar" property.

servlet22.jar = c:\jar\servlet.jar
#servlet23.jar = f:/applis/apache-dev/jakarta-servletapi-4/lib/servlet.jar

Any clue what might be wrong?

----- Original Message -----
From: "Vincent Massol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 06, 2001 12:11 AM
Subject: Re: [cactus] Help on unit testing of JSP tags


> 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