Chapter 10. The struts-config.xml File: Tying All the Pieces TogetherIN THIS CHAPTER
So far, you've seen the View (the ActionForm ), the Model, and part of the Controller (the Action ). But the Action is really only half of the controller. Although the Action returns a forwarding request, the actual destination of the forward is defined in the struts-config.xml file (which will also be referred to in this chapter simply as the config file . This file is responsible for telling Struts what forms are available, what actions are available, and also allows a number of plug-in models to be added to the base Struts package. In this chapter, you'll learn what elements go into this file, what options they take, and how the config file brings together all the elements you've seen so far. |