Struts configuration is easy, but it is possible not to have to configure at all. In other words, zero configuration. Instead of mapping actions and results in the struts.xml file, you annotate the action class. And if you’re tired of annotating, you can use the CodeBehind plug-in to handle that for you.
Appendix C, “Annotations” explains annotations.
This chapter explains zero configuration and the CodeBehind plug-in.
Since you will not have a configuration file if you decide to go the zero configuration way, you will need to tell Struts how to find your action classes. You do this by telling Struts the Java packages of the action classes used in your application by including, in your web.xml file, an ...