Apache Struts is the most established MVC (model view controller) framework in the splintered world of Java webapp client technologies. JavaGen's Struts module generates
The most important stereotype is <<struts-form>> which generates an ActionForm, a JSP form, validation and resource files. Generating these artifacts is very strait forward as this example demonstrates:

This module is useful for boot-strapping Struts projects but some hand-coding is usually required. Refer the web module from the JavaGen Petstore as a working example.
Note: The Struts module is due for a refactoring (it was written in 2003) and two of its sub-modules are no longer supported.
| Stereotype | UML Element | Description |
|---|---|---|
| <<struts-form>> |
Class
| Generates: ActionForm, JSP form, validation.xml and ApplicationResources.properties files. See struts-form |
Set these properties in your build.xml or props-javagen.xml file.
Note that the javagen.struts.flag property turns the Struts module on and the
remaining switches fine-tune Struts generation by turning sub-modules off:
| Property | Default | Description |
|---|---|---|
| javagen.struts.flag | false | Switch that turns on struts module, set to true to activate. |
| javagen.struts.no-action.flag | true | Switch that turns off Struts Action class generation, set to false to de-activate. |
| javagen.struts.no-form.flag | true | Switch that turns off Struts ActionForm class generation, set to false to de-activate. |
| javagen.struts.no-session.flag | true | Switch that turns off Struts session bean generation, set to false to de-activate. |