Chapter 10. The struts-config.xml File: Tying All the Pieces Together


Chapter 10. The struts-config.xml File: Tying All the Pieces Together

IN THIS CHAPTER

  • The struts-config DTD

  • The Configuration File in Context

  • Conclusions

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.



Struts Kick Start
Struts Kick Start
ISBN: 0672324725
EAN: 2147483647
Year: 2002
Pages: 177

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net