HI Sir,
I also have same doubt so i used the serveletcontext as
session.getServletContext().getAttribute("stringArray3Count");
Because i thaught that session and request are accessible in test case. If i am correct then
still it is returning me null. why..?
CAn you please tell me way hoe to use it..?
So i can access those values for test in TEst class.
Detailed Senario is:
A compiles class file StringArray Doing function on StringArray
A JSP importing that class file. Andf adding some ellement and some other oprations on that
class file.
Now i am writting tet class to test that jsp. For that i am accessing values of objects with
are set in jsp.
----- Original Message -----
From: Kazuhito SUGURI <suguri.kazuhito@lab.ntt.co.jp>
Date: Wed, 11 Feb 2004 21:11:15 +0900 (JST)
To: cactus-user@jakarta.apache.org
Subject: Re: Assesrtion Failed Error while JSP Testing
> Hi Dinesh,
>
> In article <20040211041424.D233A416075@ws5-2.us4.outblaze.com>,
> Wed, 11 Feb 2004 12:14:24 +0800,
> "Dinesh N" <gnavsupe@india.com> wrote:
> gnavsupe> But it Shows result for test case as null. Dont knowe why?
> gnavsupe> CAn you tell me what may be the problem ?
>
> If you say about str1 which is set by
> pageContext.getAttriute("stringArray1", pageContext.PAGE_SCORPE),
> that should be null in the TestCase.
> The page-scope attribute is accessible only in the JSP
> (i.e. /StringArrayJSP.jsp).
>
> Regards,
> ----
> Kazuhito SUGURI
> mailto:suguri.kazuhito@lab.ntt.co.jp
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
Thanking You,
Ragards,
Dinesh N.
--
India.com free e-mail - www.india.com.
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3,
e-mail forwarding, and ads-free mailboxes!
Powered by Outblaze
|