Skip to Content
0
Oct 13, 2005 at 01:14 PM

Navigation to another controller, not a sub controller

26 Views

Hello all,

I am developing a BSP application where first the consumer will register himself and in the next 2 pages fill some other questions.

For this I created a statefull BSP with MVC and data binding with 3 controllers and 3 views, one for each controller.

After the registration process is done without errors I need to call next controller, so I use navigation->goto_page( 'page2.do' ).

Ok, this works fine, but I also need to pass my model to the next controller, I tried to use navigation->set_parameter and navigation->get_parameter but it did not work. I also try m_parent, but as it is not a subcontroller it does not work as well.

All examples I found in WebLogs were based on sub controllers, that do not solve my problem as If I call a subcontroller it only inserts the new view on the top of the current view.

I don´t want to be forced to implement only one controller that calls all the views, but If I find no other way to pass my model I will do that.

I do not want to use server side cookies, as my application is already statefull.

Any example or help would be greately appreciate.

Regards,

Mauricio