Login sample application
To ensure your environment is set up correctly, you should have built and run the demo application successfully, before you start with this tutorial. Refer to the installation instructions for more on this.
Our application will come up with a login dialog, where the user is prompted to type in his user id and password. When the user submits the form, an action will verify the user data and
- display a welcome page on success
- redisplay the input form with an appropriate error message else
Not too complex, but sufficient to show the principles.
First, we'll create a single-module application, using just the Calyxo controller. Then, we'll devide it into modules. Finally, we'll add view management and validation capabilities.
Before we start, we should give our application a home. Anywhere you like, create a directory structure like this:
login-sample/ WEB-INF/ classes/ jsp/ lib/