"Vaishnav, Kunal" wrote:
>
> Hello All,
> I had a query. Can I set a cookie on the the Request Stream to the servlet
> in Cactus?. This is needed as I need some cookie information to be passed
> alongwith the request.
>
It shoudld be in the API docs, if not clear then here's what to do:
in the beginXXX method use the "addCookie(String, String)" method to add
a cookie into the ServletTestRequest. This will then be present in the
request when you run you setUp, testXXX and tearDown methods server side
in the TestCase class.
Not sure if you meant to say "Request Stream", if you did then it sounds
like you could be making things more complicated than you need to.
Jari
--
Jari Worsley
Senior Programmer
Hyperlink Interactive Ltd