----- Original Message -----
From: "Russ Baker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 24, 2001 9:44 PM
Subject: Trouble getting a request's attribute


> Hello again,
>
> This one is for real, I promise...  I am setting something in the request
> attribute (actually putting a vector into it)

I am not sure I am following you. Do you mean you're using the
HttpServletRequest.setAttribute() method (in which case this method should
be called in testXXX()) or do you mean you're using
WebRequest.addParameter() method (in beginXXX()) ? Or something else ?

> and am trying to get the
> object back out of the request.  The WebRequest object does not allow you
to
> get the attribute,

the WebRequest object is only accessible in the beginXXX() method and is
used to send HTTP parameters to the test (i.e. fill HttpServletRequest).

> are there any other objects/methods to use to get this
> out?

maybe HttpServletRequest.getAttribute()

>
> Thanks,
>
> Russ Baker

-Vincent

Reply via email to