Chapter 6. The Controller
Every webapp has a controller defined in a file
web.xml. The controller handles all incoming requests from the end-user, and that's how a webapp "listens to" and "responds to" the end-user. The controller in an OFBiz webapp is called a control servlet.
In this chapter, we will be looking at:
Understanding, defining, and using a control servlet
Understanding and defining the utility objects that OFBiz automatically attaches to every end-user request
Creating a complete flow from receiving an end-user request to determining a response
Working with various types of security and responses
How OFBiz Hears Our Requests—The Control Servlet
For each webapp, OFBiz employs a Front Controller pattern where a single component serves as ...