Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A number of files are changing for with the transition from struts1 -> struts2 and this is a simple list of what files are important in the struts2 configuration and what they are used for.

  • web/WEB-INF/classes/struts.xml
    • This is the new struts2 configuration file and it defines the majority of the functionality of the struts2 framework including all of our interceptors, packages, and actions.
  • web/WEB-INF/classes/struts.properties
    • This is a companion file to the struts.xml file and it provides settings for how struts2 should run, so things like what default theme to use, what extension our actions use, what object factory to use, etc. This file should rarely need to be changed.
  • web/WEB-INF/tiles.xml
    • This is the new tiles2 definition file and defines all of our tiles targets and their components. This works basically the same as the old tiles-config.xml file.

...

  • src/org/apache/roller/ui/admin/struts2/admin-menu.xml
    • Same as above but for the "admin" tabbed menu.
  • web/WEB-INF/jsps/*/struts2/
    • This is a wildcard, but you get the point. All of the new struts2 jsps are under their own "struts2" directory which separates them from the old struts1 jsps while we migrate. This is just a convention to help us stay organized.

...