Splitting the application into modules
Now, we'll divide our login sample application into two modules. The first module - called outside - will provide the part of the application, where the user is not logged in. The second module - called inside - will provide the part, where the user is logged in. To achieve this, we need to
- split our controller configuration into the two files calyxo-control-config-outside.xml and calyxo-control-config-inside.xml.
- Adjust the deployment descriptor, web.xml, to contain the required servlet declarations and mappings for our modules.
- Optionally, rearrange resource locations to reflect the new module structure. Also, we may want to avoid i18n resource bundles to be shared by different modules.
Before we show you how to do this, let us consider an important issue on modules.