mobileNavlogo
headerlogo

About Controller

24 October, 2018

Ratings

Related Blogs

  • Controller will take care of the web browser activities.
  • The controller manages the flow between pages.
  • Controller responds to the user actions and directs application flow.
  • The controller will request from HTTP get and HTTP post.
  • All the controllers end with the CO.
  • When we create controller on subclass will generate.

one Controllers have three methods:

  1. Process Request (HTTP get).
  2. Process Form Request (HTTP post).
  3. Process Form Data.

HTTP get:This is used while loading the page. HTTP post: After loading the page if we want changes. Process Request: This method will handle HTTP get example while loading the page displaying the default items. Process Form Request: This method will handle HTTP post.After loading the page if we want to perform any actions then we go for process form request. Process Form Data: This page is invoked upon a browser ‘post’. During this phase the framework will automatically applies changes back to the underlying view objects. Rarely custom code is required in this phase. If exceptions are thrown during this phase the phase is skipped and the page redisplays with the error message. There are two parameters in the controller: 1) OAPageContext 2) OAWebBean OAPageContext:

  • To get and set values of the fields using the OAPageContext.getparatmeter and OAPageContext.putparameter.
  • To call one page to another page OAPageContext.setforwardURL.
  • To redirect the current page itself use OAPageContext.forwardImmediatelyToCurrentPage (or) OAPageContext.sendRedirect and many more.

OAWebBean:

  • Each and every field we have properties and the properties define the behavior of item.
  • OAWebBean represents the Hierarchy/Structure of the components in the page.
  • WebBean represents the properties of item.

As we discussed what Model, View, and Controller is, look at the below figure which shows that how they generally interact with each other or how the data flow between them is. two Check out our Popular Trainings Oracle Performance Tuning Training in Hyderabad Structure of OAF Advantages and Dis-Advantages of OAF Creating First OAF Page in Project

About Author
Authorlogo
Name

TekSlate

Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills .