Curated articles, resources, tips and trends from the DevOps World.
Summary: This is a summary of an article originally published by the source. Read the full original article here →
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!
Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com