[Opensource] transition.transition error

Michael Rimov rimovm at centercomp.com
Mon Oct 27 16:12:22 PST 2003


At 10:01 PM 10/26/2003, you wrote:

>I am converting expresso 4.0.2 code to 5.0.3RC5
>I am trying to transition betwen states in different controllers.
>Original code that used to work is
>
>Transition forward = new Transition();
>forward.addParam("controller", CPParams.sCPOutcomeCont);
>forward.addParam("state", "redirectPage");
>forward.transition(request,response);
>return;


The code snippet you posted should work.

USUALLY that error indicates that you haven't called setInitialState() in 
the constructor of your controller [the target controller usually].  This 
was a requirement change between 4.0 and 5.0.  It was needed to fix a 
consistency bug.

                                                         -Mike







More information about the Opensource mailing list