jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Kitain <Roger.Kit...@Sun.COM>
Subject Re: Changing web.xml context init param From TestCase
Date Thu, 05 Aug 2004 19:04:52 GMT
Roger Kitain wrote:

> Hi,
>
> I'm using cactus 1.6.   How can I dynamically change the a context 
> init param
> (that was loaded from my web.xml file) from within a test case?
> Here's what I have:
>
> in web.xml:
> .
> .
>    <context-param>
>        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>        <param-value>server</param-value>
>    </context-param>
>
>
> In my test case I was doing the following:
>
> public class TestRenderResponsePhase extends JspFacesTestCase    {
> .
> .
> .
> public void setup() throws Exception {
>         ServletContextWrapper sc = new
>               ServletContextWrapper(config.getServletContext());
>               sc.setInitParameter("javax.faces.STATE_SAVING_METHOD",
>                  "client");
>    }
> .
> .
> .
>
> I'm not sure the new context param is taking affect....
>
> Any help would be appreciated..
>
> Thanks, in advance, Roger.
>                   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
Actually - that source code example above was bogus...
I've corrected it by using "public void setUp() {...." with the 
initialization code,
but still no success.

Thanks, Roger.




Mime
View raw message