Child pages
  • SiteGraph Plugin

Versions Compared


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

This plugin got marked as deprecated since Struts 2.5.11!


The SiteGraph plugin


generates graphical diagrams representing the flow of your web application



Additional information can be found in the JavaDocs:

Wiki Markup

Understanding the Output

There are several key things to notice when looking at the output from SiteGraph:


Code Block
java -cp ... -jar struts2-sitegraph-plugin-x.x.x.jar
     -config CONFIG_DIR
     -views VIEWS_DIRS
     -output OUTPUT
     [-ns NAMESPACE]


Wiki Markup


You must either supply the correct classpath when invoking the SiteGraph tool or place the Sitegraph plugin in the same directory as the dependent jars. Specifically, the XWork jar, Struts jar, and their dependencies must be included in the classpath. Futhermore, you must also include your Action class files referenced in struts.xml. Without the proper class path entries, SiteGraph will not function properly.


Some advanced users may wish to execute SiteGraph from within their application - this could be required if you are developing an application that supports plugin capabilities. This can easily be done. See the JavaDocs for more info:

Wiki Markup
The command line version of SiteGraph does exactly this (except for overriding the Writer):
Wiki Markup




This plugin doesn't allow for any global settings.