You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Rosenblum, Jason" <jr...@proactcorp.com> on 2002/08/06 16:09:00 UTC
CactusStrutsTestCase: persisting session
Hi,
I'm trying to test a use case with CactusStrutsTestCase in which I need to
run multiple Actions but when I do so I get:
Error running action.perform(): class java.lang.IllegalStateException -
forward() not allowed after buffer has committed.
Here's my code:
public void testSuccess() throws Exception{
setRequestPathInfo("/logon");
addRequestParameter("username", USER);
addRequestParameter("password", USER_PWD);
actionPerform();
setRequestPathInfo("/submitPersonal");
// do stuff
actionPerform();
verifyNoActionErrors();
verifyForward("submitSuccess");
}
Does anyone know how to get around this? or is there another way to run
multiple Actions that use the same session?
> Jason Rosenblum (SCJD)
> Contractor
> ProAct Technologies
> 914.872.8171 (Voice)
> 914.872.8100 (Fax)
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>