I guess the best answer is that it is not possible with the current design !
Please check http://jakarta.apache.org/commons/cactus/architecture.html to
understand how Cactus works ... You'll then understand that there are 2
parts in Cactus : a client side and a server side. beginXXX() and endXXX()
are executed on the client side whereas testXXX() is executed on the client
side.

Thanks for the suggestion though.
Vincent

----- Original Message -----
From: "Vaishnav, Kunal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 5:02 PM
Subject: RE: Cactus Question


> So then why cant add this functionality in the Cactus source?. Wont this
> help?.
> It would be much better if I could test it in the endXXX from the response
> stream itself.
>
> Kunal.
>
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 10:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cactus Question
>
>
> hum ... the answer is no and yes ...
>
> What is returned in endXXX() is the servlet output stream ! If your method
> is returning a vector and you want to test the value, you have to do this
at
> the end of your testXXX() method. The endXXX() is for asserting the result
> of calling your servlet ...
>
> Thanks
> Vincent
>
> ----- Original Message -----
> From: "Vaishnav, Kunal" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 02, 2001 4:51 PM
> Subject: Cactus Question
>
>
> > Hello All,
> >   I had a question. Can I return a vector of objects in the response
> stream
> > to be tested in the endXXX() method?. I think that in SimpleServlet
> example,
> > it shows how to return
> > cookies. But can I return a vector of objects?.
> >
> > Thanks,
> > Kunal.
> >
>

Reply via email to