Category: Data, github

In this tutorial we will create an asynchronous servlet that adds contacts to a list, parses requests and processes form validation with the help of ActiveJ framework.

We'll need the following dependencies: We'll use the following ActiveJ technologies: This tutorial represents the MVC pattern: The Address class is pretty simple: To simplify the tutorial, we will use an ArrayList to store the Contact objects.

By extending HttpServerLauncher we will take care of the server’s lifecycle and service management.

In order to determine whether a parse was successful or not, we check it’s value by using the isLeft() and isRight() methods.Finally, write down the main method which will launch our application: You've just created and launched an MVC web application with asynchronous and high-performance server!

Related Articles