O'Reilly logo

Apache OFBiz Development by Rupert Howell, Jonathon Wong

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required