cancel
Showing results for 
Search instead for 
Did you mean: 

Controller Creation

Former Member
0 Kudos

Hi,

When do we need to create Controller?

Whenever we create View , how do we relate it with created Controller.

Thanks,

Pramod

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

In BSP MVC, the Controller is the only object that can be accessed via URL or Navigation. Therefore to include any view within your application, this must be done via a controller. The controller also houses all of your event handeling.

Now how to relate the two. There doesn't have to be a one-to-one relation. You can have a single controller that can call many different views. Controllers can also call sub-controllers. Views in turn can nest controllers within them via the extension element <bsp:call>. I suggest that you study some of the SAP example MVC applications to get a feel of the many different possible ways that the applications can flow.

Answers (0)