http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/zero-configuration.html ---------------------------------------------------------------------- diff --git a/content/core-developers/zero-configuration.html b/content/core-developers/zero-configuration.html index a421e40..e9afe14 100644 --- a/content/core-developers/zero-configuration.html +++ b/content/core-developers/zero-configuration.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li>
http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/dev-mail.html ---------------------------------------------------------------------- diff --git a/content/dev-mail.html b/content/dev-mail.html index d899b01..a2068f3 100644 --- a/content/dev-mail.html +++ b/content/dev-mail.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/download.html ---------------------------------------------------------------------- diff --git a/content/download.html b/content/download.html index ae46d66..da23616 100644 --- a/content/download.html +++ b/content/download.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/downloads.html ---------------------------------------------------------------------- diff --git a/content/downloads.html b/content/downloads.html index 62f5151..12719ce 100644 --- a/content/downloads.html +++ b/content/downloads.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/annotations.html ---------------------------------------------------------------------- diff --git a/content/getting-started/annotations.html b/content/getting-started/annotations.html index 222cbdb..6719c2a 100644 --- a/content/getting-started/annotations.html +++ b/content/getting-started/annotations.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/coding-actions.html ---------------------------------------------------------------------- diff --git a/content/getting-started/coding-actions.html b/content/getting-started/coding-actions.html index 2afca11..628bde7 100644 --- a/content/getting-started/coding-actions.html +++ b/content/getting-started/coding-actions.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/control-tags.html ---------------------------------------------------------------------- diff --git a/content/getting-started/control-tags.html b/content/getting-started/control-tags.html index 5c84ae2..b89a160 100644 --- a/content/getting-started/control-tags.html +++ b/content/getting-started/control-tags.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/debugging-struts.html ---------------------------------------------------------------------- diff --git a/content/getting-started/debugging-struts.html b/content/getting-started/debugging-struts.html index 81fcdf7..a8a0839 100644 --- a/content/getting-started/debugging-struts.html +++ b/content/getting-started/debugging-struts.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/exception-handling.html ---------------------------------------------------------------------- diff --git a/content/getting-started/exception-handling.html b/content/getting-started/exception-handling.html index 122f8ef..d75971b 100644 --- a/content/getting-started/exception-handling.html +++ b/content/getting-started/exception-handling.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/exclude-parameters.html ---------------------------------------------------------------------- diff --git a/content/getting-started/exclude-parameters.html b/content/getting-started/exclude-parameters.html index 01c5f62..0098665 100644 --- a/content/getting-started/exclude-parameters.html +++ b/content/getting-started/exclude-parameters.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/form-tags.html ---------------------------------------------------------------------- diff --git a/content/getting-started/form-tags.html b/content/getting-started/form-tags.html index 9398b01..b691139 100644 --- a/content/getting-started/form-tags.html +++ b/content/getting-started/form-tags.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/form-validation-using-xml.html ---------------------------------------------------------------------- diff --git a/content/getting-started/form-validation-using-xml.html b/content/getting-started/form-validation-using-xml.html index 2dca846..011f8a5 100644 --- a/content/getting-started/form-validation-using-xml.html +++ b/content/getting-started/form-validation-using-xml.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/form-validation.html ---------------------------------------------------------------------- diff --git a/content/getting-started/form-validation.html b/content/getting-started/form-validation.html index f0c5232..482ecf0 100644 --- a/content/getting-started/form-validation.html +++ b/content/getting-started/form-validation.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/hello-world-using-struts2.html ---------------------------------------------------------------------- diff --git a/content/getting-started/hello-world-using-struts2.html b/content/getting-started/hello-world-using-struts2.html index 7cfec8a..c99f8e8 100644 --- a/content/getting-started/hello-world-using-struts2.html +++ b/content/getting-started/hello-world-using-struts2.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/how-to-create-a-struts2-web-application.html ---------------------------------------------------------------------- diff --git a/content/getting-started/how-to-create-a-struts2-web-application.html b/content/getting-started/how-to-create-a-struts2-web-application.html index 49a7058..18765f1 100644 --- a/content/getting-started/how-to-create-a-struts2-web-application.html +++ b/content/getting-started/how-to-create-a-struts2-web-application.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/http-session.html ---------------------------------------------------------------------- diff --git a/content/getting-started/http-session.html b/content/getting-started/http-session.html index c201aef..1a65177 100644 --- a/content/getting-started/http-session.html +++ b/content/getting-started/http-session.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/index.html ---------------------------------------------------------------------- diff --git a/content/getting-started/index.html b/content/getting-started/index.html index 72224af..e17d0ca 100644 --- a/content/getting-started/index.html +++ b/content/getting-started/index.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/introducing-interceptors.html ---------------------------------------------------------------------- diff --git a/content/getting-started/introducing-interceptors.html b/content/getting-started/introducing-interceptors.html index a82469d..a25d43d 100644 --- a/content/getting-started/introducing-interceptors.html +++ b/content/getting-started/introducing-interceptors.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/message-resource-files.html ---------------------------------------------------------------------- diff --git a/content/getting-started/message-resource-files.html b/content/getting-started/message-resource-files.html index 44725fd..ae1e39f 100644 --- a/content/getting-started/message-resource-files.html +++ b/content/getting-started/message-resource-files.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/preperable-interface.html ---------------------------------------------------------------------- diff --git a/content/getting-started/preperable-interface.html b/content/getting-started/preperable-interface.html index 36cc5ed..4a7b3bd 100644 --- a/content/getting-started/preperable-interface.html +++ b/content/getting-started/preperable-interface.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/processing-forms.html ---------------------------------------------------------------------- diff --git a/content/getting-started/processing-forms.html b/content/getting-started/processing-forms.html index 4786872..4018ce0 100644 --- a/content/getting-started/processing-forms.html +++ b/content/getting-started/processing-forms.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/spring.html ---------------------------------------------------------------------- diff --git a/content/getting-started/spring.html b/content/getting-started/spring.html index 4503862..4381bae 100644 --- a/content/getting-started/spring.html +++ b/content/getting-started/spring.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/themes.html ---------------------------------------------------------------------- diff --git a/content/getting-started/themes.html b/content/getting-started/themes.html index a3eda7b..f28e7ff 100644 --- a/content/getting-started/themes.html +++ b/content/getting-started/themes.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/unit-testing.html ---------------------------------------------------------------------- diff --git a/content/getting-started/unit-testing.html b/content/getting-started/unit-testing.html index ffce890..e8c3c2b 100644 --- a/content/getting-started/unit-testing.html +++ b/content/getting-started/unit-testing.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/using-tags.html ---------------------------------------------------------------------- diff --git a/content/getting-started/using-tags.html b/content/getting-started/using-tags.html index 7e70f14..c269bdc 100644 --- a/content/getting-started/using-tags.html +++ b/content/getting-started/using-tags.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/getting-started/wildcard-method-selection.html ---------------------------------------------------------------------- diff --git a/content/getting-started/wildcard-method-selection.html b/content/getting-started/wildcard-method-selection.html index b859b85..86fb6a0 100644 --- a/content/getting-started/wildcard-method-selection.html +++ b/content/getting-started/wildcard-method-selection.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/helping.html ---------------------------------------------------------------------- diff --git a/content/helping.html b/content/helping.html index 8f6588f..8cea379 100644 --- a/content/helping.html +++ b/content/helping.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/index.html ---------------------------------------------------------------------- diff --git a/content/index.html b/content/index.html index e9a85c1..9d2cf19 100644 --- a/content/index.html +++ b/content/index.html @@ -80,6 +80,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/kickstart.html ---------------------------------------------------------------------- diff --git a/content/kickstart.html b/content/kickstart.html index 84643ab..aced66c 100644 --- a/content/kickstart.html +++ b/content/kickstart.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/mail.html ---------------------------------------------------------------------- diff --git a/content/mail.html b/content/mail.html index 393a352..f822457 100644 --- a/content/mail.html +++ b/content/mail.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/maven-archetypes/index.html ---------------------------------------------------------------------- diff --git a/content/maven-archetypes/index.html b/content/maven-archetypes/index.html new file mode 100644 index 0000000..081c03e --- /dev/null +++ b/content/maven-archetypes/index.html @@ -0,0 +1,1043 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> + <meta name="Date-Revision-yyyymmdd" content="20140918"/> + <meta http-equiv="Content-Language" content="en"/> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + + <title>Maven Archetypes (WIP)</title> + + <link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,400italic,600italic,700italic" rel="stylesheet" type="text/css"> + <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> + <link href="/css/main.css" rel="stylesheet"> + <link href="/css/custom.css" rel="stylesheet"> + <link href="/highlighter/github-theme.css" rel="stylesheet"> + + <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> + <script type="text/javascript" src="/bootstrap/js/bootstrap.js"></script> + <script type="text/javascript" src="/js/community.js"></script> +</head> +<body> + +<a href="http://github.com/apache/struts" class="github-ribbon"> + <img style="position: absolute; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"> +</a> + +<header> + <nav> + <div role="navigation" class="navbar navbar-default navbar-fixed-top"> + <div class="container"> + <div class="navbar-header"> + <button type="button" data-toggle="collapse" data-target="#struts-menu" class="navbar-toggle"> + Menu + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a href="/index.html" class="navbar-brand logo"><img src="/img/struts-logo.svg"></a> + </div> + <div id="struts-menu" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"> + <li class="dropdown"> + <a data-toggle="dropdown" href="#" class="dropdown-toggle"> + Home<b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="/index.html">Welcome</a></li> + <li><a href="/downloads.html">Downloads</a></li> + <li><a href="/announce.html">Announcements</a></li> + <li><a href="http://www.apache.org/licenses/">License</a></li> + <li><a href="http://apache.org/foundation/thanks.html">Thanks!</a></li> + <li><a href="http://apache.org/foundation/sponsorship.html">Sponsorship</a></li> + </ul> + </li> + <li class="dropdown"> + <a data-toggle="dropdown" href="#" class="dropdown-toggle"> + Support<b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="/mail.html">User Mailing List</a></li> + <li><a href="https://issues.apache.org/jira/browse/WW">Issue Tracker</a></li> + <li><a href="/security.html">Reporting Security Issues</a></li> + <li class="divider"></li> + <li><a href="/maven/project-info.html">Project info</a></li> + <li><a href="/maven/struts2-core/dependencies.html">Struts Core dependencies</a></li> + <li><a href="/maven/struts2-plugins/modules.html">Plugin dependencies</a></li> + </ul> + </li> + <li class="dropdown"> + <a data-toggle="dropdown" href="#" class="dropdown-toggle"> + Documentation<b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="/birdseye.html">Birds Eye</a></li> + <li><a href="/primer.html">Key Technologies</a></li> + <li><a href="/kickstart.html">Kickstart FAQ</a></li> + <li><a href="https://cwiki.apache.org/confluence/display/WW/Home">Wiki</a></li> + <li class="divider"></li> + <li><a href="/getting-started/">Getting Started</a></li> + <li><a href="/security/">Security Guide</a></li> + <li><a href="/core-developers/">Core Developers Guide</a></li> + <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> + <li><a href="/plugins/">Plugins</a></li> + <li class="divider"></li> + <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> + <li><a href="/docs/plugins.html">Plugin APIs</a></li> + <li><a href="/docs/tag-reference.html">Tag reference</a></li> + <li><a href="http://cwiki.apache.org/S2PLUGINS/home.html">Plugin registry</a></li> + <li class="divider"></li> + <li><a href="/docs/tutorials.html">Tutorials - DEPRECATED</a></li> + <li><a href="/docs/faqs.html">FAQs - DEPRECATED</a></li> + <li><a href="/docs/guides.html">Guides - DEPRECATED</a></li> + </ul> + </li> + <li class="dropdown"> + <a data-toggle="dropdown" href="#" class="dropdown-toggle"> + Contributing<b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="/youatstruts.html">You at Struts</a></li> + <li><a href="/helping.html">How to Help FAQ</a></li> + <li><a href="/dev-mail.html">Development Lists</a></li> + <li class="divider"></li> + <li><a href="/submitting-patches.html">Submitting patches</a></li> + <li><a href="/builds.html">Source Code</a></li> + <li><a href="/coding-standards.html">Coding standards</a></li> + <li class="divider"></li> + <li><a href="/releases.html">Release Guidelines</a></li> + <li><a href="/bylaws.html">PMC Charter</a></li> + <li><a href="/volunteers.html">Volunteers</a></li> + <li><a href="https://git-wip-us.apache.org/repos/asf?p=struts.git">Source Repository</a></li> + </ul> + </li> + <li class="apache"><a href="http://www.apache.org/"><img src="/img/apache.png"></a></li> + </ul> + </div> + </div> + </div> + </nav> +</header> + + +<article class="container"> + <section class="col-md-12"> + <a class="edit-on-gh" href="https://github.com/apache/struts-site/edit/master/source/maven-archetypes/index.md" title="Edit this page on GitHub">Edit on GitHub</a> + <p>#Struts 2 Maven Archetypes# {#PAGE_108820}</p> + +<p>Struts 2 provides several <a href="http://maven\.apache\.org/">Maven</a>^[http://maven.apache.org/] archetypes that create a starting point for our own applications.</p> + +<p><strong>Contents</strong></p> + +<p>###Quickstart###</p> + +<p>A recommended way to start with Struts2 archetypes is to work with the archetype catalog.</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ + +</code></pre> +</div> + +<p>###Available Archetypes###</p> + +<p>####The Blank Convention Archetype (struts2-archetype-convention)####</p> + +<p>#####Features#####</p> + +<ul> + <li> + <p>Convention-based validation</p> + </li> + <li> + <p>Example actions</p> + </li> + <li> + <p>Package-level resource bundle</p> + </li> + <li> + <p>Unit-testing</p> + </li> + <li> + <p>Google AppEgine aware</p> + </li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-convention \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> \ + -DremoteRepositories=http://struts.apache.org + +</code></pre> +</div> + +<p>####The Blank Archetype (struts2-archetype-blank)####</p> + +<p>See the <a href="#PAGE_108834">Struts 2 Blank Archetype</a> page for more information, including some basic Maven information, how to build and run the app, and basic application information.</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-blank \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> \ + -DremoteRepositories=http://struts.apache.org + + +</code></pre> +</div> + +<p>####The Starter Archetype (struts2-archetype-starter)####</p> + +<p>The Starter archetype creates a more featured application using several common technologies used in production applications.</p> + +<p>#####Features#####</p> + +<ul> + <li> + <p>Sitemesh integration</p> + </li> + <li> + <p>Action example (instantiated both through Spring and Struts)</p> + </li> + <li> + <p>Spring integration</p> + </li> + <li> + <p>Validation example (action and action-alias level)</p> + </li> + <li> + <p>Conversion example (global and action level)</p> + </li> + <li> + <p>Resource bundle (both global, action and package level)</p> + </li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-starter \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> \ + -DremoteRepositories=http://struts.apache.org + +</code></pre> +</div> + +<p>####The AngularJS Archetype (struts2-archetype-angularjs)####</p> + +<p>#####Features#####</p> + +<ul> + <li> + <p>Convention-based Action Configuration</p> + </li> + <li> + <p>Example actions with JSON Result</p> + </li> + <li> + <p>Example for AngularJS and Struts2 Integration</p> + </li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-angularjs \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> \ + -DremoteRepositories=http://struts.apache.org + +</code></pre> +</div> + +<p>####The Portlet Blank Archetype (struts2-archetype-portlet)####</p> + +<p>The Portlet blank archetype creates a minimally populated JSR 168 portlet.</p> + +<p>#####Features#####</p> + +<ul> + <li> + <p>View, Edit, and Help mode examples</p> + </li> + <li> + <p>Simple form for preferences in Edit mode</p> + </li> + <li> + <p>Can be deployed as a servlet or portlet application</p> + </li> + <li> + <p>Can use Maven Jetty plugin to deploy with the pluto-embedded profile (usage âmvn jetty:run -Ppluto-embeddedâ, then access <a href="http://localhost:8080/">http://localhost:8080/</a><artifactId>/pluto/index.jsp)</p> + </li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-portlet \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> \ + -DremoteRepositories=http://struts.apache.org + +</code></pre> +</div> + +<p>####The Portlet Database Archetype (struts2-archetype-dbportlet)####</p> + +<p>The Portlet database archetype creates a simple JSR 168 portlet that displays the contents of a database table.</p> + +<p>#####Features#####</p> + +<ul> + <li> + <p>Uses Spring and Hsql to show a real database query</p> + </li> + <li> + <p>Builtin caching of query results</p> + </li> + <li> + <p>View, Edit, and Help mode examples</p> + </li> + <li> + <p>Simple form for preferences in Edit mode</p> + </li> + <li> + <p>Can be deployed as a servlet or portlet application</p> + </li> + <li> + <p>Can use Maven Jetty plugin to deploy as a servlet webapp</p> + </li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-dbportlet \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> \ + -DremoteRepositories=http://struts.apache.org + +</code></pre> +</div> + +<p>####The Plugin Archetype (struts2-archetype-plugin)####</p> + +<p>#####Features#####</p> + +<ul> + <li> + <p>Example new result type</p> + </li> + <li> + <p>Example XML-based configuration</p> + </li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myPlugin \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-plugin \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> \ + -DremoteRepositories=http://struts.apache.org + +</code></pre> +</div> + +<p>###Creating an Application Using a Maven Archetype###</p> + +<p>Run the following command from your new projectâs parent directory. The project will be created in a sub-directory named after the</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>artifactId +</code></pre> +</div> +<p>parameter.</p> + +<p>The first two parameters,</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>groupId +</code></pre> +</div> +<p>and</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>artifactId +</code></pre> +</div> +<p>, should be set according to your needs:</p> + +<ul> + <li></li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code>groupId +</code></pre> +</div> + +<p>This should be the root package of your application, e.g., com.mycompany.myapp.</p> + +<ul> + <li></li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code>artifactId +</code></pre> +</div> + +<p>Names the project directory that will be created in the current directory.</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B \ + -DgroupId=tutorial \ + -DartifactId=tutorial \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-blank \ + -DarchetypeVersion=<CURRENT_STRUTS_VERSION> + -DremoteRepositories=http://struts.apache.org + +</code></pre> +</div> + +<p>where <CURRENT_STRUTS_VERSION> is archetypeâs version you want to use, eg. 2.3.15.1</p> + +<p>####Staging repository####</p> + +<p>If the above command will fail because of missing archetypes in central repository, you can try to use staging repository like below</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/ + +</code></pre> +</div> + +<p>or this</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ + +</code></pre> +</div> + +<p>####Archetype Parameters####</p> + +<p>The</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>-B +</code></pre> +</div> +<p>option runs</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>archetype:generate +</code></pre> +</div> +<p>in batch mode; it avoids a prompt to confirm our settings.</p> + +<table> + <thead> + <tr> + <th>Parameter</th> + <th>Description</th> + </tr> + </thead> + <tbody> + <tr> + <td>groupId</td> + <td>The id for the group the application belongs to. Usually is the root package for applications in your company, e.g. com.mycompany</td> + </tr> + <tr> + <td>artifactId</td> + <td>The id for the project. The project will be created a sub-directory named after this parameter.</td> + </tr> + <tr> + <td>archetypeGroupId</td> + <td>The group id of the archetype. Will always be org.apache.struts for Struts archetypes</td> + </tr> + <tr> + <td>archetypeArtifactId</td> + <td>The id of the archetype</td> + </tr> + <tr> + <td>archetypeVersion</td> + <td>The version of the archetype</td> + </tr> + <tr> + <td>package</td> + <td>(Optional) The base Java package to use for generated source code. Defaults to archetypeGroupId if not specified.</td> + </tr> + <tr> + <td>remoteRepositories</td> + <td>(Optional) A list of remote repositories that contain the archetype.</td> + </tr> + </tbody> +</table> + +<p>###Command Quick Reference###</p> + +<p>These commands are used from the directory created by the archetype plugin (the projectâs sub-directory that was created in the previous step).</p> + +<ul> + <li>To build</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn install + +</code></pre> +</div> + +<ul> + <li>To create IntelliJ IDEA project files</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn idea:idea + +</code></pre> +</div> + +<ul> + <li>To create Eclipse project files</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn eclipse:eclipse -Dwtpversion=1.5 + +</code></pre> +</div> + +<ul> + <li>To run test cases</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn test + +</code></pre> +</div> + +<ul> + <li>To clean up (removes generated artifacts)</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn clean + +</code></pre> +</div> + +<ul> + <li>To package (creates a WAR file)</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn package + +</code></pre> +</div> + +<ul> + <li>To grab necessary JAR files etc.</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn initialize + +</code></pre> +</div> + +<ul> + <li>To run it with Jetty</li> +</ul> + +<div class="highlighter-rouge"><pre class="highlight"><code> + mvn jetty:run + +</code></pre> +</div> + +<p>##Struts 2 Blank Archetype## {#PAGE_108834}</p> + +<p>The Struts 2 Blank Archetype (âblank-archetypeâ) provides a minimal, but complete, Struts 2 application. It demonstrates some of the most basic Struts 2 concepts.</p> + +<p><strong>Features</strong></p> + +<ul> + <li> + <p>XML-based configuration, demonstrates including additional config file</p> + </li> + <li> + <p>Example actions</p> + </li> + <li> + <p>Package-level resource bundle</p> + </li> + <li> + <p>XML-based validation</p> + </li> + <li> + <p>Unit-testing</p> + </li> +</ul> + +<p><strong>Contents</strong></p> + +<p>####Creating Our blank-archetype Project####</p> + +<p>Weâll run the following command from our projectâs parent directory (this is shown using Unix-style commands).</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +$ mvn archetype:generate -B \ + -DgroupId=tutorial \ + -DartifactId=tutorial \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-blank \ + -DarchetypeVersion=<version> +$ ls +tutorial/ +$ cd tutorial +$ ls +pom.xml src/ + +</code></pre> +</div> + +<p>Depending on the state of your local system you may see Maven downloading various libraries (known as âdownloading the internetâ, which is what it seems Maven does sometimes). Be patient--Maven is basically setting up your required libraries automatically. +<strong><version></strong> - is the version of Struts 2 you want to use and archetype was released for, eg. 2.1.8.1 .</p> + +<p>#####Staging repository#####</p> + +<p>If the above command will fail because of missing archetypes in central repository, you can try to use staging repository like below</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +mvn archetype:generate -B \ + -DgroupId=tutorial \ + -DartifactId=tutorial \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-blank \ + -DarchetypeVersion=<version> + -DarchetypeCatalog=http://people.apache.org/builds/struts/<version>/m2-staging-repository/ + +</code></pre> +</div> + +<p>####Project Structure####</p> + +<p>The source code structure follows the normal <a href="http://maven\.apache\.org/guides/introduction/introduction\-to\-the\-standard\-directory\-layout\.html">Maven directory structure</a>^[http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html]. The blank-archetype does not include all of the directories listed in the Maven structure reference page.</p> + +<p>Our projectâs structure looks like this:</p> + +<table> + <thead> + <tr> + <th>Directory</th> + <th>Description</th> + </tr> + </thead> + <tbody> + <tr> + <td>src</td> + <td>All project source</td> + </tr> + <tr> + <td>¦- main</td> + <td>Primary source directory</td> + </tr> + <tr> + <td>¦  ¦- java</td> + <td>Java source code</td> + </tr> + <tr> + <td>¦  ¦  `- tutorial</td> + <td>Package defined by groupId parameter</td> + </tr> + <tr> + <td>¦  ¦     `- example</td> + <td>The example actions from the archetype</td> + </tr> + <tr> + <td>¦  ¦- resources</td> + <td>Resources (config, property, and validation files, and so on</td> + </tr> + <tr> + <td>¦  ¦  `-tutorial</td> + <td>Package defined by groupId parameter</td> + </tr> + <tr> + <td>¦  ¦     `- example</td> + <td>Example property and validation files from archetype</td> + </tr> + <tr> + <td>¦  `- webapp</td> + <td>Web application files (HTML, JSP, etc.)</td> + </tr> + <tr> + <td>¦      `- WEB-INF</td> + <td>Typical WEB-INF folder</td> + </tr> + <tr> + <td>¦         `- example</td> + <td>Files from archetype</td> + </tr> + <tr> + <td>`- test</td> + <td>Test code (unit tests etc.)</td> + </tr> + <tr> + <td>   `- java</td> + <td>Java-based test code</td> + </tr> + <tr> + <td>      `- tutorial</td> + <td>Package defined by groupId parameter</td> + </tr> + <tr> + <td>         `- example</td> + <td>Test code from archetype</td> + </tr> + </tbody> +</table> + +<p>#####Structure Difference From Non-Maven Projects#####</p> + +<p>One big change for folks not used to the Maven structure is the separation of Java source code and resource files. For example, in a non-Maven project our directory structure might look like this:</p> + +<table> + <thead> + <tr> + <th>src</th> + <th>All project source</th> + </tr> + </thead> + <tbody> + <tr> + <td>¦- tutorial</td> + <td>Tutorial package</td> + </tr> + <tr> + <td>¦  `- example</td> + <td>Example package</td> + </tr> + <tr> + <td>¦     ¦- Login.java</td> + <td>Login action source</td> + </tr> + <tr> + <td>¦     ¦- package.properties</td> + <td>Resource file</td> + </tr> + <tr> + <td>¦     `- Login-validation.xml</td> + <td>Validation file</td> + </tr> + <tr> + <td>`- struts.xml</td> + <td>Struts 2 config file</td> + </tr> + <tr> + <td>web</td> + <td>Web app files</td> + </tr> + <tr> + <td>¦- WEB-INF</td> + <td>Typical WEB-INF folder</td> + </tr> + <tr> + <td>`- index.html</td> + <td>An HTML file</td> + </tr> + </tbody> +</table> + +<p>It can take a little while to get used to, but ultimately it provides good separation of âtypesâ of things, and becomes second-nature pretty quickly. Note that itâs possible to use a non-Maven directory layout with Maven projects, but this can be challenging at some points.</p> + +<p>####Building The Project####</p> + +<p>There are several different ways we can go about building our project, from simple compilation up to actually running the web application--all from within Maven.</p> + +<p>#####Compilation#####</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>$ mvn compile +</code></pre> +</div> + +<p>will create a</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>target +</code></pre> +</div> +<p>directory containing the compiled classes. By itself this isnât terribly useful.</p> + +<p>#####Testing#####</p> + +<p>Running</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>$ mvn test +</code></pre> +</div> + +<p>will compile the application and run the included unit tests. Blank-archetypeâs unit tests are <em>not</em> extensive, but provide a simple starting point for writing more complex, application-specific tests.</p> + +<p>One weâve run the Maven test command weâll notice thereâs a</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>target/surefire-reports +</code></pre> +</div> +<p>directory. The <a href="http://maven\.apache\.org/plugins/maven\-surefire\-plugin/">Maven Surefire Plugin</a>^[http://maven.apache.org/plugins/maven-surefire-plugin/] is how Maven runs our unit tests. By default it will create test results in XML and text formats in the</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>target/surefire-reports +</code></pre> +</div> +<p>directory. These files can be examined to get further information regarding the failed tests.</p> + +<p>#####Assembling (Creating a WAR)#####</p> + +<p>#####Running#####</p> + +<p>We can run blank-archetype using the <a href="http://www\.mortbay\.org/jetty/">Jetty</a>^[http://www.mortbay.org/jetty/] server via the <a href="http://docs\.codehaus\.org/display/JETTY/Maven\+Jetty\+Plugin">Maven Jetty Plugin</a>^[http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin] by executing the Jetty pluginâs</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>run +</code></pre> +</div> +<p>command:</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>$ mvn jetty:run +</code></pre> +</div> + +<p>Once weâve run the application we can see that it works by visiting</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>localhost:8080/tutorial/example/Welcome.action +</code></pre> +</div> +<p>as a sanity check.</p> + +<p>####Application Documentation####</p> + +<p>The application consists of a few test actions demonstrating simple validation and package-level property (resource) files. The most interesting URLs are as follows (assuming we used</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>groupId=tutorial +</code></pre> +</div> +<p>):</p> + +<table> + <thead> + <tr> + <th>URL</th> + <th>Description</th> + </tr> + </thead> + <tbody> + <tr> + <td>/tutorial/example/Welcome.action</td> + <td>Handled by wildcard mapping</td> + </tr> + <tr> + <td>/tutorial/example/HelloWorld.action</td> + <td>Handled by explicit mapping, demonstrates package-level properties</td> + </tr> + <tr> + <td>/tutorial/example/Login.action</td> + <td>Handled by explicit mapping with method wilcard (see the Login.action documentation for information regarding how to access this URL)</td> + </tr> + </tbody> +</table> + +<p>#####Application Configuration#####</p> + +<p>The default Struts 2 configuration file is contained in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>src/main/resources/struts.xml +</code></pre> +</div> +<p>. It includes an additional configuration file,</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>src/main/resources/example.xml +</code></pre> +</div> +<p>. The applicationâs mappings are contained in the</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>example.xml +</code></pre> +</div> +<p>file. The</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>struts.xml +</code></pre> +</div> +<p>file sets some constants.</p> + +<p>See the <em>struts.xml</em> page for more information about the</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>struts.xml +</code></pre> +</div> +<p>file. For more information regarding whatâs contained in typical</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>struts.xml +</code></pre> +</div> +<p>files start at the <em>Configuration Elements</em> page, which contains links to a bunch of information. See the <em>Configuration Files</em> page for more information regarding additional Struts 2 configuration files, including links to the files that set all the Struts 2 default configurations.</p> + +<p>#####Welcome.action#####</p> + +<p>The mapping for this action is handled by a âcatch-allâ mapping in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>example.xml +</code></pre> +</div> +<p>:</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +<action name="*" class="tutorial2.example.ExampleSupport"> + <result>/example/{1}.jsp</result> +</action> + +</code></pre> +</div> + +<p>This mapping is the last mapping contained in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>example.xml +</code></pre> +</div> +<p>--anything not handled by mappings appearing before it in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>example.xml +</code></pre> +</div> +<p>will be caught by this mapping. This mapping will look for JSP files in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>src/main/webapp/example/*.jsp +</code></pre> +</div> +<p>. Since thereâs a</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>Welcome.jsp +</code></pre> +</div> +<p>in that directory, weâre all set. See the <em>Wildcard Mappings</em> page for more information on how Struts 2 can use wildcard mappings.</p> + +<p>#####HelloWorld.action#####</p> + +<p>The mapping executes the HelloWorld action, contained in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>src/main/java/tutorial/example/HelloWorld.action +</code></pre> +</div> +<p>. This action retrieves a message from a package-level properties file, contained in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>src/main/resources/tutorial/package.properties +</code></pre> +</div> +<p>. See the <em>Localization</em> page for more information about how Struts 2 handles message resources (itâs pretty cool).</p> + +<p>#####Login.action#####</p> + +<p>This is another wildcard mapping:</p> + +<div class="highlighter-rouge"><pre class="highlight"><code> +<action name="Login_*" method="{1}" class="tutorial2.example.Login"> + <result name="input">/example/Login.jsp</result> + <result type="redirectAction">Menu</result> +</action> + +</code></pre> +</div> + +<p>In the application the Login action is reached via a link, but not directly to</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>/tutorial/example/Login.action +</code></pre> +</div> +<p>. The link is actually</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>/tutorial/example/Login_input.action +</code></pre> +</div> +<p>. Reaching the Login action this way bypasses validation: if we hit the Login action directly weâll get a validation error.</p> + +<p>The validation configuration is contained in</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>/src/main/resources/tutorial/example/Login-validation.xml +</code></pre> +</div> +<p>. It checks for the presence of the</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>username +</code></pre> +</div> +<p>and</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>password +</code></pre> +</div> +<p>properties (form values). It uses messages stored in the</p> + +<div class="highlighter-rouge"><pre class="highlight"><code>package.properties +</code></pre> +</div> +<p>file (in the same directory). See the <em>Validation</em> page for more information regarding Struts 2 validation.</p> + + </section> +</article> + + +<footer class="container"> + <div class="col-md-12"> + Copyright © 2000-2016 <a href="http://www.apache.org/">The Apache Software Foundation </a>. + All Rights Reserved. + </div> + <div class="col-md-12"> + Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are + trademarks of The Apache Software Foundation. + </div> + <div class="col-md-12">Logo and website design donated by <a href="https://softwaremill.com/">SoftwareMill</a>.</div> +</footer> + +<script>!function (d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (!d.getElementById(id)) { + js = d.createElement(s); + js.id = id; + js.src = "//platform.twitter.com/widgets.js"; + fjs.parentNode.insertBefore(js, fjs); + } +}(document, "script", "twitter-wjs");</script> +<script src="https://apis.google.com/js/platform.js" async="async" defer="defer"></script> + +<div id="fb-root"></div> + +<script>(function (d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); + js.id = id; + js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; + fjs.parentNode.insertBefore(js, fjs); +}(document, 'script', 'facebook-jssdk'));</script> + + +<script> +$(function() { + return $("h2, h3, h4, h5, h6").each(function(i, el) { + var $el, id; + $el = $(el); + id = $el.attr('id'); + if (id) { + $el.removeAttr('id'); + return $el.before($("<a />").addClass('anchor').attr('name', id)); + } + }); +}); +</script> + +</body> +</html> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/plugins/convention/converting.html ---------------------------------------------------------------------- diff --git a/content/plugins/convention/converting.html b/content/plugins/convention/converting.html index 5a22885..fbebdd5 100644 --- a/content/plugins/convention/converting.html +++ b/content/plugins/convention/converting.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/plugins/convention/index.html ---------------------------------------------------------------------- diff --git a/content/plugins/convention/index.html b/content/plugins/convention/index.html index 8fbc6aa..770ae2a 100644 --- a/content/plugins/convention/index.html +++ b/content/plugins/convention/index.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/plugins/index.html ---------------------------------------------------------------------- diff --git a/content/plugins/index.html b/content/plugins/index.html index 8b94d63..9e6b57b 100644 --- a/content/plugins/index.html +++ b/content/plugins/index.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/plugins/json/index.html ---------------------------------------------------------------------- diff --git a/content/plugins/json/index.html b/content/plugins/json/index.html index 8b29431..07fe3b7 100644 --- a/content/plugins/json/index.html +++ b/content/plugins/json/index.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/plugins/junit/index.html ---------------------------------------------------------------------- diff --git a/content/plugins/junit/index.html b/content/plugins/junit/index.html index d78dc9a..3d89acd 100644 --- a/content/plugins/junit/index.html +++ b/content/plugins/junit/index.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/primer.html ---------------------------------------------------------------------- diff --git a/content/primer.html b/content/primer.html index a2e2073..a4f6878 100644 --- a/content/primer.html +++ b/content/primer.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/releases.html ---------------------------------------------------------------------- diff --git a/content/releases.html b/content/releases.html index b4ba54b..4efd60a 100644 --- a/content/releases.html +++ b/content/releases.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/security.html ---------------------------------------------------------------------- diff --git a/content/security.html b/content/security.html index 5d14648..cec8180 100644 --- a/content/security.html +++ b/content/security.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/security/index.html ---------------------------------------------------------------------- diff --git a/content/security/index.html b/content/security/index.html index b29bd79..2925a09 100644 --- a/content/security/index.html +++ b/content/security/index.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/struts1eol-announcement.html ---------------------------------------------------------------------- diff --git a/content/struts1eol-announcement.html b/content/struts1eol-announcement.html index e376333..b0f8da3 100644 --- a/content/struts1eol-announcement.html +++ b/content/struts1eol-announcement.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/struts1eol-press.html ---------------------------------------------------------------------- diff --git a/content/struts1eol-press.html b/content/struts1eol-press.html index d6bd57e..dfd89e8 100644 --- a/content/struts1eol-press.html +++ b/content/struts1eol-press.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li> http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/submitting-patches.html ---------------------------------------------------------------------- diff --git a/content/submitting-patches.html b/content/submitting-patches.html index e95b764..17bfda5 100644 --- a/content/submitting-patches.html +++ b/content/submitting-patches.html @@ -82,6 +82,7 @@ <li><a href="/security/">Security Guide</a></li> <li><a href="/core-developers/">Core Developers Guide</a></li> <li><a href="/tag-developers/">Tag Developers Guide</a></li> + <li><a href="/maven-archetypes/">Maven Archetypes</a></li> <li><a href="/plugins/">Plugins</a></li> <li class="divider"></li> <li><a href="/maven/struts2-core/apidocs/index.html">Struts Core API</a></li>