Excerpt |
---|
The Struts 2 Blank Archetype ("blank-archetype") provides a minimal, but complete, Struts 2 application. It demonstrates some of the most basic Struts 2 concepts, including:
|
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Creating Our blank-archetype Project
...
The source code structure follows the normal Maven directory structure. Blank-archetype does not include all of these directories. Our project's structure looks like this:
Directory | Description |
---|---|
| All project source goes here. |
| The primary source directory. |
| Java source code |
| Package defined by |
| The example actions from the archetype |
| Resources (config, property, and validation files, and so on |
| Package defined by |
| Example property and validation files from archetype |
| Web application files (HTML, JSP, etc.) |
| Typical WEB-INF folder |
| Files from archetype |
| Test code (unit tests etc.) |
| Java-based test code |
| Package defined by |
| Test code from archetype |