Controllers and Views

Controllers and Views are two layers of the MVC stack which EasyWeb4J influences greatly. Hence, it is important that you understand the basics of these two layers' behavior in EasyWeb4J before you jump into the code for these layers. Hence a special section dedicated to discuss them is provided before showing you the code. However, the tips for these two layers are provided along with the source code to understand the reason behind the coding style followed.

This section describes,

  • The APIs for common operations in controllers.
  • How views can be used to display the response for requests after the controller completes its job.
  • How layouts can be used to DRY up your view code. This is discussed as a part of the discussion on views.