struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 3c8993e9c -> 29a49678b Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/29a49678 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/29a49678 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/29a49678 Branch: refs/heads/asf-site Commit: 29a49678b0833bb61dbbcb16db167c21e3955f58 Parents: 3c8993e Author: jenkinsAuthored: Fri Sep 22 06:19:25 2017 + Committer: jenkins Committed: Fri Sep 22 06:19:25 2017 + -- content/tag-developers/a-tag.html | 981 + 1 file changed, 491 insertions(+), 490 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/29a49678/content/tag-developers/a-tag.html -- diff --git a/content/tag-developers/a-tag.html b/content/tag-developers/a-tag.html index 9ac6ae7..0b77a31 100644 --- a/content/tag-developers/a-tag.html +++ b/content/tag-developers/a-tag.html @@ -143,488 +143,488 @@ it is really designed to work best with the ajax theme Parameters - table width="100%" - tr - td colspan="6"h4Dynamic Attributes Allowed:/h4 true/td - /tr - tr - td colspan="6"nbsp;/td - /tr - tr - th align="left" valign="top"h4Name/h4/th - th align="left" valign="top"h4Required/h4/th - th align="left" valign="top"h4Default/h4/th - th align="left" valign="top"h4Evaluated/h4/th - th align="left" valign="top"h4Type/h4/th - th align="left" valign="top"h4Description/h4/th - /tr - tr - td align="left" valign="top"accesskey/td - td align="left" valign="top"false/td - td align="left" valign="top"/td - td align="left" valign="top"false/td - td align="left" valign="top"String/td - td align="left" valign="top"Set the html accesskey attribute on rendered html element/td - /tr - tr - td align="left" valign="top"action/td - td align="left" valign="top"false/td - td align="left" valign="top"/td - td align="left" valign="top"false/td - td align="left" valign="top"String/td - td align="left" valign="top"The action to generate the URL for, if not using value/td - /tr - tr - td align="left" valign="top"anchor/td - td align="left" valign="top"false/td - td align="left" valign="top"/td - td align="left" valign="top"false/td - td align="left" valign="top"String/td - td align="left" valign="top"The anchor for this URL/td - /tr - tr - td align="left" valign="top"class/td - td align="left" valign="top"false/td - td align="left" valign="top"/td - td align="left" valign="top"false/td - td align="left" valign="top"String/td - td align="left" valign="top"The css class to use for element - it's an alias of cssClass attribute./td - /tr - tr - td align="left" valign="top"cssClass/td - td align="left" valign="top"false/td - td align="left" valign="top"/td - td align="left" valign="top"false/td - td align="left" valign="top"String/td - td align="left" valign="top"The css class to use for element/td - /tr - tr - td align="left" valign="top"cssErrorClass/td - td align="left" valign="top"false/td - td align="left" valign="top"/td - td align="left" valign="top"false/td - td align="left"
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site c4fda1656 -> 3c8993e9c Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/3c8993e9 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/3c8993e9 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/3c8993e9 Branch: refs/heads/asf-site Commit: 3c8993e9c0a7cdc81e4587c6ec2d08935ea4f414 Parents: c4fda16 Author: jenkinsAuthored: Thu Sep 21 19:37:51 2017 + Committer: jenkins Committed: Thu Sep 21 19:37:51 2017 + -- content/tag-developers/a-tag.html | 499 - 1 file changed, 490 insertions(+), 9 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/3c8993e9/content/tag-developers/a-tag.html -- diff --git a/content/tag-developers/a-tag.html b/content/tag-developers/a-tag.html index 12dfff1..9ac6ae7 100644 --- a/content/tag-developers/a-tag.html +++ b/content/tag-developers/a-tag.html @@ -132,9 +132,8 @@ Description -{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.Anchor} - - +A tag that creates a HTML a. This tag supports the same attributes as the url tag, including nested parameters +using the param tag. While this tag can be used with the simple theme, xhtml theme, and others, @@ -144,8 +143,487 @@ it is really designed to work best with the ajax theme Parameters -{snippet:id=tagattributes|javadoc=false|url=struts2-tags/a.html} - + table width="100%" + tr + td colspan="6"h4Dynamic Attributes Allowed:/h4 true/td + /tr + tr + td colspan="6"nbsp;/td + /tr + tr + th align="left" valign="top"h4Name/h4/th + th align="left" valign="top"h4Required/h4/th + th align="left" valign="top"h4Default/h4/th + th align="left" valign="top"h4Evaluated/h4/th + th align="left" valign="top"h4Type/h4/th + th align="left" valign="top"h4Description/h4/th + /tr + tr + td align="left" valign="top"accesskey/td + td align="left" valign="top"false/td + td align="left" valign="top"/td + td align="left" valign="top"false/td + td align="left" valign="top"String/td + td align="left" valign="top"Set the html accesskey attribute on rendered html element/td + /tr + tr + td align="left" valign="top"action/td + td align="left" valign="top"false/td + td align="left" valign="top"/td + td align="left" valign="top"false/td + td align="left" valign="top"String/td + td align="left" valign="top"The action to generate the URL for, if not using value/td + /tr + tr + td align="left" valign="top"anchor/td + td align="left" valign="top"false/td + td align="left" valign="top"/td + td align="left" valign="top"false/td + td align="left" valign="top"String/td + td align="left" valign="top"The anchor for this URL/td + /tr + tr + td align="left" valign="top"class/td + td align="left" valign="top"false/td + td align="left" valign="top"/td + td align="left" valign="top"false/td + td align="left" valign="top"String/td + td align="left" valign="top"The css class to use for element - it's an alias of cssClass attribute./td + /tr + tr + td align="left" valign="top"cssClass/td + td align="left" valign="top"false/td + td align="left" valign="top"/td + td align="left" valign="top"false/td + td align="left" valign="top"String/td + td align="left" valign="top"The css class to
[8/8] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/c4fda165 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/c4fda165 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/c4fda165 Branch: refs/heads/asf-site Commit: c4fda1656a1e9a65d4d5647c63d2f95d7607d887 Parents: ca50e3e Author: jenkinsAuthored: Thu Sep 21 14:40:32 2017 + Committer: jenkins Committed: Thu Sep 21 14:40:32 2017 + -- content/tag-developers/actionerror-tag.html | 203 +++ content/tag-developers/actionmessage-tag.html | 203 +++ content/tag-developers/ajax-common-header.html | 1583 ++ content/tag-developers/checkbox-tag.html| 212 +++ content/tag-developers/checkboxlist-tag.html| 222 +++ content/tag-developers/combobox-tag.html| 212 +++ content/tag-developers/component-tag.html | 243 +++ content/tag-developers/datetextfield-tag.html | 212 +++ content/tag-developers/div-tag.html | 212 +++ content/tag-developers/dojo-a-tag.html | 250 +++ .../tag-developers/dojo-autocompleter-tag.html | 269 +++ content/tag-developers/dojo-bind-tag.html | 252 +++ .../tag-developers/dojo-datetimepicker-tag.html | 215 +++ content/tag-developers/dojo-div-tag.html| 217 +++ content/tag-developers/dojo-head-tag.html | 233 +++ content/tag-developers/dojo-submit-tag.html | 267 +++ .../tag-developers/dojo-tabbedpanel-tag.html| 211 +++ content/tag-developers/dojo-textarea-tag.html | 197 +++ content/tag-developers/dojo-tree-tag.html | 217 +++ content/tag-developers/dojo-treenode-tag.html | 205 +++ content/tag-developers/doubleselect-tag.html| 222 +++ content/tag-developers/fielderror-tag.html | 207 +++ content/tag-developers/file-tag.html| 212 +++ content/tag-developers/form-tag.html| 216 +++ content/tag-developers/head-tag.html| 212 +++ content/tag-developers/hidden-tag.html | 212 +++ content/tag-developers/index.html | 1455 .../tag-developers/inputtransferselect-tag.html | 213 +++ content/tag-developers/label-tag.html | 216 +++ content/tag-developers/optgroup-tag.html| 222 +++ .../optiontransferselect-tag.html | 226 +++ content/tag-developers/password-tag.html| 216 +++ content/tag-developers/radio-tag.html | 230 +++ content/tag-developers/reset-tag.html | 220 +++ content/tag-developers/select-tag.html | 216 +++ content/tag-developers/submit-tag.html | 230 +++ content/tag-developers/textarea-tag.html| 212 +++ content/tag-developers/textfield-tag.html | 216 +++ content/tag-developers/token-tag.html | 212 +++ content/tag-developers/updownselect-tag.html| 222 +++ 40 files changed, 9967 insertions(+), 1455 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/actionerror-tag.html -- diff --git a/content/tag-developers/actionerror-tag.html b/content/tag-developers/actionerror-tag.html new file mode 100644 index 000..6155c58 --- /dev/null +++ b/content/tag-developers/actionerror-tag.html @@ -0,0 +1,203 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key
[1/8] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site ca50e3ee1 -> c4fda1656 http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/textfield-tag.html -- diff --git a/content/tag-developers/textfield-tag.html b/content/tag-developers/textfield-tag.html new file mode 100644 index 000..fd4d3bd --- /dev/null +++ b/content/tag-developers/textfield-tag.html @@ -0,0 +1,216 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/textfield-tag.md; title="Edit this page on GitHub">Edit on GitHub +textfield + +Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. + + + + + + + + +Description + +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.TextField} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/textfield.html} + + + +Examples + +{snippet:id=exdescription|lang=none|javadoc=true|url=org.apache.struts2.components.TextField} + + + +{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.TextField} + + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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"); +https://apis.google.com/js/platform.js" async="async" defer="defer"> + + + +(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')); + + + +$(function() { + return $("h2, h3, h4, h5,
[5/8] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/dojo-datetimepicker-tag.html -- diff --git a/content/tag-developers/dojo-datetimepicker-tag.html b/content/tag-developers/dojo-datetimepicker-tag.html new file mode 100644 index 000..c13f528 --- /dev/null +++ b/content/tag-developers/dojo-datetimepicker-tag.html @@ -0,0 +1,215 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/dojo-datetimepicker-tag.md; title="Edit this page on GitHub">Edit on GitHub +datetimepicker + +Description + +{snippet:id=javadoc|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/ajax/datetimepicker.html} + + + +Examples + +{snippet:id=example1|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java} + + + +Getting and getting the datetimepicker value, from JavaScript: + +{snippet:id=example2|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java} + + + +Publish topic when value changes + +{snippet:id=example3|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java} + + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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"); +https://apis.google.com/js/platform.js" async="async" defer="defer"> + + + +(function (d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js =
[3/8] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/index.html -- diff --git a/content/tag-developers/index.html b/content/tag-developers/index.html index d276d09..22c5d1d 100644 --- a/content/tag-developers/index.html +++ b/content/tag-developers/index.html @@ -169,1461 +169,6 @@ -WIP - -#actionerror# {#PAGE_14130} - -Description - -{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.ActionError} - - - -Parameters - -{snippet:id=tagattributes|javadoc=false|url=struts2-tags/actionerror.html} - - - -Examples - -{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.ActionError} - - - -#actionmessage# {#PAGE_14023} - -Description - -{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.ActionMessage} - - - -Parameters - -{snippet:id=tagattributes|javadoc=false|url=struts2-tags/actionmessage.html} - - - -Examples - -{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.ActionMessage} - - - -#ajax common header# {#PAGE_66934} - -To use this tag: - - - -Add: %@ taglib prefix=âsxâ uri=â/struts-dojo-tagsâ % to your page. - - -The head tag must be included on the page, which can be configured for performance or debugging purposes. - - -If the parseContent parameter for the head tag is false (it is false by default), then the id tag is required. - - - -For more examples see Ajax and JavaScript Recipes - - - - - - - - -#autocompleter# {#PAGE_46753} - -Description - -{snippet:id=javadoc|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Parameters - -{snippet:id=tagattributes|javadoc=false|url=struts2-tags/ajax/autocompleter.html} - - - -Examples - -Get list from an action: - -{snippet:id=example1|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Uses a list: - -{snippet:id=example2|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Autocompleter that reloads its content everytime the text changes (and the length of the text is greater than 3): - -{snippet:id=example3|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Linking two autocompleters: - -{snippet:id=example4|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Set/Get selected values using JavaScript: - -{snippet:id=example5|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Using beforeNotifyTopics: - -{snippet:id=example6|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Using errorNotifyTopics: - -{snippet:id=example7|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Using errorNotifyTopics: - -{snippet:id=example8|lang=html|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Using valueNotifyTopics: - -{snippet:id=example9|lang=html|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} - - - -Caveats - - - The service that is producing the HTTP Response with JSON response to the Autocompleter tag must set the HTTP Header Response Content-Type to - - -text/json - - -. JSON has its own MIME type, which this tag expects. - - - Since 2.0.9, there is a change in the value:key order. Now, the value must come before the key. - - -#bind# {#PAGE_66798} - -Description - -{snippet:id=javadoc|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Bind.java} - - - -Thereâs a bug in IE6/IE7 which makes impossible to use the targetâs attribute with a parent Div, because such Divâs contentâs are overwritten with the tagâs loadingText . Resulting in an âundefinedâ message in the contentâs, instead of the result of the request. - -One possible alternative is to set showLoadingText=âfalseâ and set the indicator attribute to an element showing the desired loading text or image (outside the div). - - -img id="loadingImage" src="images/loadingAnimation.gif" style="display:none"/ -s:div id="parentDiv" -s:form action="actionName" -s:submit id="btn" / -sx:bind sources="btn" events="onclick" targets="parentDiv" showLoadingText="false" indicator="loadingImage"/ -/s:form -/s:div - - - - -Parameters - -{snippet:id=tagattributes|javadoc=false|url=struts2-tags/ajax/bind.html} - - - -Examples - -Without attaching to an event, listening to a topic (used to
[2/8] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/optgroup-tag.html -- diff --git a/content/tag-developers/optgroup-tag.html b/content/tag-developers/optgroup-tag.html new file mode 100644 index 000..258505f --- /dev/null +++ b/content/tag-developers/optgroup-tag.html @@ -0,0 +1,222 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/optgroup-tag.md; title="Edit this page on GitHub">Edit on GitHub +optgroup + +Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. + + + + + + + + +Description + +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.OptGroup} + + + + + + + {snippet:id=notice + javadoc=true + url=org.apache.struts2.components.OptGroup} + + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/optgroup.html} + + + +Examples + +{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.OptGroup} + + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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"); +https://apis.google.com/js/platform.js" async="async" defer="defer"> + + + +(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')); + + + +$(function() { + return $("h2, h3, h4, h5, h6").each(function(i, el) { +var $el, id; +$el = $(el); +id = $el.attr('id'); +
[4/8] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/doubleselect-tag.html -- diff --git a/content/tag-developers/doubleselect-tag.html b/content/tag-developers/doubleselect-tag.html new file mode 100644 index 000..0a3ac96 --- /dev/null +++ b/content/tag-developers/doubleselect-tag.html @@ -0,0 +1,222 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/doubleselect-tag.md; title="Edit this page on GitHub">Edit on GitHub +doubleselect + +Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. + + + + + + + + + + + + {snippet:id=javadoc + javadoc=true + url=org.apache.struts2.components.DoubleListUIBean} + + + + +Description + +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.DoubleSelect} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/doubleselect.html} + + + +Examples + +{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.DoubleSelect} + + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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"); +https://apis.google.com/js/platform.js" async="async" defer="defer"> + + + +(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')); + + + +$(function() { + return $("h2, h3, h4, h5, h6").each(function(i, el) { +var $el, id; +
[6/8] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/checkboxlist-tag.html -- diff --git a/content/tag-developers/checkboxlist-tag.html b/content/tag-developers/checkboxlist-tag.html new file mode 100644 index 000..359ec31 --- /dev/null +++ b/content/tag-developers/checkboxlist-tag.html @@ -0,0 +1,222 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/checkboxlist-tag.md; title="Edit this page on GitHub">Edit on GitHub +checkboxlist + +Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. + + + + + + + + + + + + {snippet:id=javadoc + javadoc=true + url=org.apache.struts2.components.ListUIBean} + + + + +Description + +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.CheckboxList} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/checkboxlist.html} + + + +Examples + +{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.CheckboxList} + + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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"); +https://apis.google.com/js/platform.js" async="async" defer="defer"> + + + +(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')); + + + +$(function() { + return $("h2, h3, h4, h5, h6").each(function(i, el) { +var $el, id; +
[7/8] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/c4fda165/content/tag-developers/ajax-common-header.html -- diff --git a/content/tag-developers/ajax-common-header.html b/content/tag-developers/ajax-common-header.html new file mode 100644 index 000..f15fd42 --- /dev/null +++ b/content/tag-developers/ajax-common-header.html @@ -0,0 +1,1583 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/ajax-common-header.md; title="Edit this page on GitHub">Edit on GitHub +ajax common header + +To use this tag: + + + Add: %@ taglib prefix="sx" uri="/struts-dojo-tags" % to your page. + The head tag must be included on the page, which can be configured for performance or debugging purposes. + If the parseContent parameter for the head tag is false (it is false by default), then the id tag is required. + + +For more examples see Ajax and JavaScript Recipes + +#autocompleter# {#PAGE_46753} + +Description + +{snippet:id=javadoc|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/ajax/autocompleter.html} + + + +Examples + +Get list from an action: + +{snippet:id=example1|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} + + + +Uses a list: + +{snippet:id=example2|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} + + + +Autocompleter that reloads its content everytime the text changes (and the length of the text is greater than 3): + +{snippet:id=example3|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} + + + +Linking two autocompleters: + +{snippet:id=example4|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} + + + +Set/Get selected values using JavaScript: + +{snippet:id=example5|lang=xml|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} + + + +Using beforeNotifyTopics: +
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 58b82863f -> ca50e3ee1 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/ca50e3ee Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/ca50e3ee Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/ca50e3ee Branch: refs/heads/asf-site Commit: ca50e3ee1c5fdb144fc4d6f5b83ed9f0e6235ddb Parents: 58b8286 Author: jenkinsAuthored: Thu Sep 21 13:20:54 2017 + Committer: jenkins Committed: Thu Sep 21 13:20:54 2017 + -- .../struts2-archetype-blank.html| 187 ++- 1 file changed, 186 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/ca50e3ee/content/maven-archetypes/struts2-archetype-blank.html -- diff --git a/content/maven-archetypes/struts2-archetype-blank.html b/content/maven-archetypes/struts2-archetype-blank.html index 462bc87..f5b87b8 100644 --- a/content/maven-archetypes/struts2-archetype-blank.html +++ b/content/maven-archetypes/struts2-archetype-blank.html @@ -1,4 +1,133 @@ -Struts 2 Blank Archetype + + + + + + + + + + Struts 2 Blank Archetype + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +<< back to Maven Archetypes +https://github.com/apache/struts-site/edit/master/source/maven-archetypes/struts2-archetype-blank.md; title="Edit this page on GitHub">Edit on GitHub +Struts 2 Blank Archetype 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. @@ -320,3 +449,59 @@ pom.xml src/ In the application the Login action is reached via a link, but not directly to /tutorial/example/Login.action. The link is actually /tutorial/example/Login_input.action. Reaching the Login action this way bypasses validation: if we hit the Login action directly weâll get a validation error. The validation configuration is contained in /src/main/resources/tutorial/example/Login-validation.xml. It checks for the
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site e5e12f755 -> 58b82863f Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/58b82863 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/58b82863 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/58b82863 Branch: refs/heads/asf-site Commit: 58b82863f726cf3f0d1bae21b60bf20158b2eb2f Parents: e5e12f7 Author: jenkinsAuthored: Thu Sep 21 12:54:03 2017 + Committer: jenkins Committed: Thu Sep 21 12:54:03 2017 + -- content/maven-archetypes/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/58b82863/content/maven-archetypes/index.html -- diff --git a/content/maven-archetypes/index.html b/content/maven-archetypes/index.html index 83c6b04..33dc090 100644 --- a/content/maven-archetypes/index.html +++ b/content/maven-archetypes/index.html @@ -7,7 +7,7 @@ - Maven Archetypes (WIP) + Maven Archetypes
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site bcd3ef7cc -> e5e12f755 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/e5e12f75 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/e5e12f75 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/e5e12f75 Branch: refs/heads/asf-site Commit: e5e12f755f5227e77635dfbd7ae34d072a3afd59 Parents: bcd3ef7 Author: jenkinsAuthored: Thu Sep 21 12:53:16 2017 + Committer: jenkins Committed: Thu Sep 21 12:53:16 2017 + -- .../struts2-archetype-blank.html| 187 +-- 1 file changed, 1 insertion(+), 186 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/e5e12f75/content/maven-archetypes/struts2-archetype-blank.html -- diff --git a/content/maven-archetypes/struts2-archetype-blank.html b/content/maven-archetypes/struts2-archetype-blank.html index f5b87b8..462bc87 100644 --- a/content/maven-archetypes/struts2-archetype-blank.html +++ b/content/maven-archetypes/struts2-archetype-blank.html @@ -1,133 +1,4 @@ - - - - - - - - - - Struts 2 Blank Archetype - - - - - - - - - - - - - -http://github.com/apache/struts; class="github-ribbon"> - https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> - - - - - - - - -Menu -Toggle navigation - - - - - - - - - - -Home - - -Welcome -Downloads -Announcements -http://www.apache.org/licenses/;>License -http://apache.org/foundation/thanks.html;>Thanks! -http://apache.org/foundation/sponsorship.html;>Sponsorship - - - - -Support - - -User Mailing List -https://issues.apache.org/jira/browse/WW;>Issue Tracker -Reporting Security Issues - -Project info -Struts Core dependencies -Plugin dependencies - - - - -Documentation - - -Birds Eye -Key Technologies -Kickstart FAQ -https://cwiki.apache.org/confluence/display/WW/Home;>Wiki - -Getting Started -Security Guide -Core Developers Guide -Tag Developers Guide -Maven Archetypes -Plugins - -Struts Core API -Plugin APIs -Tag reference -http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED - - - - -Contributing - - -You at Struts -How to Help FAQ -Development Lists - -Submitting patches -Source Code -Coding standards - -Release Guidelines -PMC Charter -Volunteers -https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository - - -http://www.apache.org/;> - - - - - - - - - - -<< back to Maven Archetypes -https://github.com/apache/struts-site/edit/master/source/maven-archetypes/struts2-archetype-blank.md; title="Edit this page on GitHub">Edit on GitHub -Struts 2 Blank Archetype +Struts 2 Blank Archetype 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. @@ -449,59 +320,3 @@ pom.xml src/ In the application the Login action is reached via a link, but not directly to /tutorial/example/Login.action. The link is actually /tutorial/example/Login_input.action. Reaching the Login action this way bypasses validation: if we hit the Login action directly weâll get a validation error. The validation configuration is contained in /src/main/resources/tutorial/example/Login-validation.xml. It checks for the
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 596de5fd8 -> a52b99d12 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/a52b99d1 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/a52b99d1 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/a52b99d1 Branch: refs/heads/asf-site Commit: a52b99d128721fe283d8ea327f39f83ea09a4c90 Parents: 596de5f Author: jenkinsAuthored: Thu Sep 21 12:41:38 2017 + Committer: jenkins Committed: Thu Sep 21 12:41:38 2017 + -- content/maven-archetypes/index.html | 650 +++ .../struts2-archetype-blank.html| 507 +++ 2 files changed, 603 insertions(+), 554 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/a52b99d1/content/maven-archetypes/index.html -- diff --git a/content/maven-archetypes/index.html b/content/maven-archetypes/index.html index 081c03e..9c7fbfe 100644 --- a/content/maven-archetypes/index.html +++ b/content/maven-archetypes/index.html @@ -126,27 +126,66 @@ https://github.com/apache/struts-site/edit/master/source/maven-archetypes/index.md; title="Edit this page on GitHub">Edit on GitHub -#Struts 2 Maven Archetypes# {#PAGE_108820} - -Struts 2 provides several http://maven\.apache\.org/;>Maven^[http://maven.apache.org/] archetypes that create a starting point for our own applications. - -Contents +Struts 2 Maven Archetypes + +Struts 2 provides several http://maven.apache.org/;>Maven archetypes that create a starting point for our own applications. + +Contents + + + Struts 2 Maven Archetypes + Quickstart + Available Archetypes + The Blank Convention Archetype (struts2-archetype-convention) + Features + + + The Blank Archetype (struts2-archetype-blank) + The Starter Archetype (struts2-archetype-starter) + Features + + + The AngularJS Archetype (struts2-archetype-angularjs) + Features + + + The Portlet Blank Archetype (struts2-archetype-portlet) + Features + + + The Portlet Database Archetype (struts2-archetype-dbportlet) + Features + + + The Plugin Archetype (struts2-archetype-plugin) + Features + + + + + Creating an Application Using a Maven Archetype + Staging repository + Archetype Parameters + + + Command Quick Reference + + + -###Quickstart### +Quickstart A recommended way to start with Struts2 archetypes is to work with the archetype catalog. - -mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ - +mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ -###Available Archetypes### +Available Archetypes -The Blank Convention Archetype (struts2-archetype-convention) +The Blank Convention Archetype (struts2-archetype-convention) -#Features# +Features @@ -166,38 +205,33 @@ mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ - -mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ +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 - -The Blank Archetype (struts2-archetype-blank) +The Blank Archetype (struts2-archetype-blank) -See the Struts 2 Blank Archetype page for more information, including some basic Maven information, how to build and run the app, and basic application information. +See the Struts 2 Blank Archetype page for more information, including some basic Maven information, how to build and run the app, and basic application information. - -mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ -DartifactId=myWebApp \
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 2b2ec9b30 -> 596de5fd8 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/596de5fd Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/596de5fd Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/596de5fd Branch: refs/heads/asf-site Commit: 596de5fd8904916d5b27ad8875601d35424c78dd Parents: 2b2ec9b Author: jenkinsAuthored: Thu Sep 21 10:13:22 2017 + Committer: jenkins Committed: Thu Sep 21 10:13:22 2017 + -- content/tag-developers/alt-syntax.html | 237 content/tag-developers/index.html | 2 +- 2 files changed, 238 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/596de5fd/content/tag-developers/alt-syntax.html -- diff --git a/content/tag-developers/alt-syntax.html b/content/tag-developers/alt-syntax.html new file mode 100644 index 000..522a0d6 --- /dev/null +++ b/content/tag-developers/alt-syntax.html @@ -0,0 +1,237 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/alt-syntax.md; title="Edit this page on GitHub">Edit on GitHub +Alt Syntax + +The altSyntax is an option that can be defined in struts.xml. By default it is set to true and it is strongly +recommend you do not change that unless you are upgrading from WebWork 2.1.7 or previous versions. + + + You can also turn on the altSyntax on a per-page basis by using the set tag. Simply set the name useAltSyntax +to the value true . From this point on, all tags will use the altSyntax for the rest of the request. + + +The altSyntax changes the behavior of how tags are interpreted. Instead of evaluating each tag parameter against +the value stack and needing single quotes to mark string literals, only marked expressions are evaluated. + +Example: + +the following code uses the Tag Syntax: + +s:iterator value="cart.items" + ... +
[08/11] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/debug-tag.html -- diff --git a/content/tag-developers/debug-tag.html b/content/tag-developers/debug-tag.html new file mode 100644 index 000..d89dcd0 --- /dev/null +++ b/content/tag-developers/debug-tag.html @@ -0,0 +1,187 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/debug-tag.md; title="Edit this page on GitHub">Edit on GitHub +debug + +Outputs the content of the Value Stack. + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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"); +https://apis.google.com/js/platform.js" async="async" defer="defer"> + + + +(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')); + + + +$(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($("").addClass('anchor').attr('name', id)); +} + }); +}); + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/else-tag.html -- diff --git a/content/tag-developers/else-tag.html b/content/tag-developers/else-tag.html new file mode 100644 index 000..e59820c --- /dev/null +++ b/content/tag-developers/else-tag.html @@ -0,0 +1,212 @@ +
[03/11] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/push-tag.html -- diff --git a/content/tag-developers/push-tag.html b/content/tag-developers/push-tag.html new file mode 100644 index 000..7f31885 --- /dev/null +++ b/content/tag-developers/push-tag.html @@ -0,0 +1,240 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/push-tag.md; title="Edit this page on GitHub">Edit on GitHub +push + +Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. + + + + + + + + +Description + +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.Push} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/push.html} + + + +Examples + +{snippet:id=example1|lang=xml|javadoc=true|url=org.apache.struts2.components.Push} + + + +{snippet:id=example1description|lang=none|javadoc=true|url=org.apache.struts2.components.Push} + + + +{snippet:id=example2|lang=xml|javadoc=true|url=org.apache.struts2.components.Push} + + + +{snippet:id=example2description|lang=none|javadoc=true|url=org.apache.struts2.components.Push} + + + +{snippet:id=example3|lang=xml|javadoc=true|url=org.apache.struts2.components.Push} + + + +{snippet:id=example3description|lang=none|javadoc=true|url=org.apache.struts2.components.Push} + + + +{snippet:id=example4|lang=xml|javadoc=true|url=org.apache.struts2.components.Push} + + + +{snippet:id=example4description|lang=none|javadoc=true|url=org.apache.struts2.components.Push} + + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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");
[09/11] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/ajax-theme.html -- diff --git a/content/tag-developers/ajax-theme.html b/content/tag-developers/ajax-theme.html new file mode 100644 index 000..714dfbc --- /dev/null +++ b/content/tag-developers/ajax-theme.html @@ -0,0 +1,669 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/ajax-theme.md; title="Edit this page on GitHub">Edit on GitHub +ajax theme + +The ajax theme is deprecated! + + + + + + + + +The ajax theme extends the xhtml theme with AJAX features. The theme uses the popular DOJO AJAX/JavaScript toolkit. AJAX features include: + + + +AJAX Client Side Validation + + +Remote form submission support (works with the submit tag as well) + + +An advanced div template that provides dynamic reloading of partial HTML + + +An advanced a template that provides the ability to load and evaluate JavaScript remotely + + +An AJAX-only tabbedPanel implementation + + +A rich pub-sub event model + + +Interactive autocomplete tag + + + +(ok) See also: Ajax tags + +Browser Compatibility + +AJAX (as a technology) uses a browser-side scripting component that varies between browers (and sometimes versions). To hide those differences from the developer, we utilize the dojo toolkit (http://www.dojotoolkit.org;>http://www.dojotoolkit.org). Several browsers are supported by dojo, and any UIâs created with the ajax theme should act the same way for supported browsers. The supported browsers are: + + + +IE 5.5+ + + +FF 1.0+ + + +Latest Safari (on up-to-date OS versions) + + +Latest Opera + + +Latest Konqueror + + + +Extending the AJAX Theme + +The wrapping technique utilized by the ajax theme is much like xhtml theme, but the + +controlheader.ftl + + +is a wee bit different. + + +#if parameters.label?if_exists != "" + #include "/${parameters.templateDir}/xhtml/controlheader.ftl" / +/#if +#if parameters.form?exists parameters.form.validate?default(false) == true + #-- can't mutate the data model in freemarker -- +#if parameters.onblur?exists +
[02/11] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/tag-reference.html -- diff --git a/content/tag-developers/tag-reference.html b/content/tag-developers/tag-reference.html new file mode 100644 index 000..11815b9 --- /dev/null +++ b/content/tag-developers/tag-reference.html @@ -0,0 +1,190 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/tag-reference.md; title="Edit this page on GitHub">Edit on GitHub +Tag Reference + +Generic Tags + +UI Tags + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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"); +https://apis.google.com/js/platform.js" async="async" defer="defer"> + + + +(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')); + + + +$(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($("").addClass('anchor').attr('name', id)); +} + }); +}); + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/tag-syntax.html -- diff --git a/content/tag-developers/tag-syntax.html b/content/tag-developers/tag-syntax.html new file mode 100644 index 000..462f86f --- /dev/null +++
[11/11] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/2b2ec9b3 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/2b2ec9b3 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/2b2ec9b3 Branch: refs/heads/asf-site Commit: 2b2ec9b30517d5ab06eb50b11adfca0dbe40b694 Parents: 08f8753 Author: jenkinsAuthored: Thu Sep 21 10:05:37 2017 + Committer: jenkins Committed: Thu Sep 21 10:05:37 2017 + -- content/tag-developers/a-tag.html | 224 + .../access-to-valuestack-from-jsps.html | 322 + content/tag-developers/action-tag.html | 232 + .../ajax-and-javascript-recipes.html| 1162 +++ content/tag-developers/ajax-tags.html | 263 + content/tag-developers/ajax-theme.html | 669 ++ content/tag-developers/append-tag.html | 209 + content/tag-developers/bean-tag.html| 209 + .../cewolf-charts-using-velocity-templates.html | 307 + content/tag-developers/css-xhtml-theme.html | 329 + content/tag-developers/date-tag.html| 203 + content/tag-developers/debug-tag.html | 187 + content/tag-developers/else-tag.html| 212 + content/tag-developers/elseif-tag.html | 212 + content/tag-developers/extending-themes.html| 335 + content/tag-developers/form-tags.html | 481 + content/tag-developers/freemarker-tags.html | 331 + content/tag-developers/freemarker.html | 546 ++ content/tag-developers/generator-tag.html | 203 + .../tag-developers/generic-tag-reference.html | 225 + content/tag-developers/generic-tags.html| 194 + content/tag-developers/i18n-tag.html| 212 + content/tag-developers/if-tag.html | 210 + content/tag-developers/include-tag.html | 234 + content/tag-developers/index.html | 8447 ++ content/tag-developers/iterator-tag.html| 279 + content/tag-developers/jsp-tags.html| 203 + content/tag-developers/jsp.html | 280 + content/tag-developers/merge-tag.html | 216 + content/tag-developers/ognl-basics.html | 373 + .../ognl-expression-compilation.html| 519 ++ content/tag-developers/ognl.html| 320 + content/tag-developers/param-tag.html | 216 + content/tag-developers/property-tag.html| 216 + content/tag-developers/push-tag.html| 240 + .../selecting-template-directory.html | 244 + content/tag-developers/selecting-themes.html| 245 + content/tag-developers/set-tag.html | 212 + content/tag-developers/simple-theme.html| 224 + content/tag-developers/sort-tag.html| 212 + content/tag-developers/struts-tags.html | 232 + content/tag-developers/subset-tag.html | 223 + content/tag-developers/tag-reference.html | 190 + content/tag-developers/tag-syntax.html | 448 + content/tag-developers/template-loading.html| 337 + content/tag-developers/text-tag.html| 263 + .../tag-developers/themes-and-templates.html| 262 + content/tag-developers/ui-tag-reference.html| 245 + content/tag-developers/ui-tags.html | 230 + content/tag-developers/url-tag.html | 255 + content/tag-developers/velocity-tags.html | 220 + content/tag-developers/velocity.html| 359 + content/tag-developers/xhtml-theme.html | 400 + 53 files changed, 16224 insertions(+), 7597 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/a-tag.html -- diff --git a/content/tag-developers/a-tag.html b/content/tag-developers/a-tag.html new file mode 100644 index 000..12dfff1 --- /dev/null +++ b/content/tag-developers/a-tag.html @@ -0,0 +1,224 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +
[01/11] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 08f875300 -> 2b2ec9b30 http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/url-tag.html -- diff --git a/content/tag-developers/url-tag.html b/content/tag-developers/url-tag.html new file mode 100644 index 000..b49f68c --- /dev/null +++ b/content/tag-developers/url-tag.html @@ -0,0 +1,255 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/url-tag.md; title="Edit this page on GitHub">Edit on GitHub +url + +Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. + + + + + + + + +The id attribute is deprecated in Struts 2.1.x, and has been replaced by the var attribute. + + + + + + + + +Description + +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.URL} + + + +Setting a default value for includeParams + +The property struts.url.includeParams can be used to set the default value of the includeParams attribute. + +Setting the default value of includeParams + + +struts + ... + constant name="struts.url.includeParams" value="none" / + ... +/struts + + + + +See Constant Configuration for further information. + + + + + + + + + + + As of Struts 2.1.3 the includeParams constant defaults to ânoneâ. + + + + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/url.html} + + + +Examples + +{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.URL} + + + + + + + + + +Copyright 2000-2016 http://www.apache.org/;>The Apache Software Foundation . +All Rights Reserved. + + +Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project logos are +trademarks of The Apache Software Foundation. + + Logo and website design donated by https://softwaremill.com/;>SoftwareMill. + + +!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");
[04/11] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/ognl-expression-compilation.html -- diff --git a/content/tag-developers/ognl-expression-compilation.html b/content/tag-developers/ognl-expression-compilation.html new file mode 100644 index 000..1ef39b9 --- /dev/null +++ b/content/tag-developers/ognl-expression-compilation.html @@ -0,0 +1,519 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/ognl-expression-compilation.md; title="Edit this page on GitHub">Edit on GitHub +OGNL Expression Compilation + +This document is meant as a development/integration guide for anyone wanting to use the new OGNL 2.7 features for doing +byte code runtime enhancements on OGNL statements. This is not meant for general user reference as it covers what +are mostly internal API development concerns. + +## Basic Usage + +By default there isnât much you have to do to use the new compilation abilities in OGNL. Following is an example of compiling +a simple property expression and invoking it. + +SimpleObject root = new SimpleObject(); +OgnlContext context = (OgnlContext) Ognl.createDefaultContext(null); + +Node node = (Node) Ognl.compileExpression(context, root, "user.name"); +String userName = node.getAccessor().get(context, root); + + + +Youâll notice that this example references the new ognl.enhance.ExpressionAccessor class. This is the interface used +to create the enhanced expression versions of any given expression via javassist and should be used to set/get expression +values from the compiled versions of the code. Although the old Ognl.getValue(node, context, root) method of getting/setting +values will correctly detect a compiled expression and use the accessor directly as well, itâs not going to be as fast +as you doing it directly. + +## ognl.enhance.OgnlExpressionCompiler + +The core class involved in doing the management of these expression compilations by default is ognl.enhance.ExpressionCompiler, +which implements ognl.enhance.OgnlExpressionCompiler. Although you can in theory use this default implementation it +is not recommended for more robust integration points - such as being
[05/11] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/iterator-tag.html -- diff --git a/content/tag-developers/iterator-tag.html b/content/tag-developers/iterator-tag.html new file mode 100644 index 000..3886a45 --- /dev/null +++ b/content/tag-developers/iterator-tag.html @@ -0,0 +1,279 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/iterator-tag.md; title="Edit this page on GitHub">Edit on GitHub +iterator + +Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. + + + + + + + + +The id attribute is deprecated in Struts 2.1.x, and has been replaced by the var attribute. + + + + + + + + +The begin, end and step attributes are only available from 2.1.7 on + + + + + +Description + +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/iterator.html} + + + +Examples + +{snippet:id=example1description|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example1code|lang=xml|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example2description|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example2code|lang=xml|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example3description|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example3code|lang=xml|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example4description|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example4code|lang=xml|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example5description|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example5code|lang=xml|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + + +{snippet:id=example6description|javadoc=true|url=org.apache.struts2.components.IteratorComponent} + + +
[06/11] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b2ec9b3/content/tag-developers/index.html -- diff --git a/content/tag-developers/index.html b/content/tag-developers/index.html index 7a8d8e1..ee6e4bc 100644 --- a/content/tag-developers/index.html +++ b/content/tag-developers/index.html @@ -126,105 +126,108 @@ https://github.com/apache/struts-site/edit/master/source/tag-developers/index.md; title="Edit this page on GitHub">Edit on GitHub -#Tag Developers Guide# {#PAGE_14324} +Tag Developers Guide The framework offers a flexible view layer that supports multiple view technologies, including JSP, FreeMaker, and Velocity. - - - - - - + + Struts Tags + + Generic Tags + UI Tags + Themes and Templates + Tag Reference + Ajax Tags + + Ajax and JavaScript Recipes + + + + + OGNL + + OGNL Basics + OGNL Expression compilatio + + + Tag Syntax + Alt Syntax + JSP + + specific tags + + + FreeMarker + + specific tags + + + Velocity + + specific tags + + + - - - - - - +WIP -| |\ -\ -+ Struts Tags\ -\ - + Generic Tags\ -\ - + UI Tags\ -\ - + Themes and Templates\ -\ - + Tag Reference\ -\ - + Ajax Tags\ -\ -+ Ajax and JavaScript Recipes\ -\ -+ OGNL\ -\ -+ Tag Syntax\ -\ -+ Alt Syntax \ -|\ -\ -+ JSP\ -\ - + specific tags\ -\ -+ FreeMarker\ -\ - + specific tags\ -\ -+ Velocity\ -\ - + specific tags\ -| -|ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ-|âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ| +#actionerror# {#PAGE_14130} - - - - - - +Description -###Next:### +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.ActionError} + + -##FreeMarker## {#PAGE_14078} +Parameters -FreeMarker is a Java-based template engine that is a great alternative to JSP. FreeMarker is ideal for situations where your action results can possibly be loaded from outside a Servlet container. For example, if you wished to support plugins in your application, you might wish to use FreeMarker so that the plugins could provide the entire action class and view in a single jar that is loaded from the classloader. +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/actionerror.html} + + -For more information on FreeMarker itself, please visit the http://freemarker\.sourceforge\.net/;>FreeMarker website^[http://freemarker.sourceforge.net/]. +Examples - - - - The framework utilizes FreeMarker because the engine includes strong error reporting, built-in internationalization and powerful macro libraries. - - - +{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.ActionError} + + - - - - - - +#actionmessage# {#PAGE_14023} - - - - - - +Description - - - - Support is also included for Velocity templates. For a comparison of Velocity vs FreeMarker see http://freemarker\.org/fmVsVel\.html;>here^[http://freemarker.org/fmVsVel.html]. - - - +{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.ActionMessage} + + + +Parameters + +{snippet:id=tagattributes|javadoc=false|url=struts2-tags/actionmessage.html} + + + +Examples + +{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.ActionMessage} + + + +#ajax common header# {#PAGE_66934} + +To use this tag: + + + +Add: %@ taglib prefix=âsxâ uri=â/struts-dojo-tagsâ % to your page. + + +The head tag must be included on the page, which can be configured for performance or debugging purposes. + + +If the parseContent parameter for the head tag is false (it is false by default), then the id tag is required. + + + +For more examples see Ajax and JavaScript Recipes @@ -233,188 +236,195 @@ -Getting Started +#autocompleter# {#PAGE_46753} -Getting started with FreeMarker is as simple as ensuring all the dependencies are included in your projectâs classpath. Typically, the only dependency is +Description -freemarker.jar - +{snippet:id=javadoc|javadoc=true|url=struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java} + -. Other than that, struts-default.xml already configures the FreeMarker Result needed to process your applicationâs templates. -action name="test" class="com.acme.TestAction" -result
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site a299b067f -> 08f875300 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/08f87530 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/08f87530 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/08f87530 Branch: refs/heads/asf-site Commit: 08f87530047f24e3cd8e2c4831316cb8b29ed961 Parents: a299b06 Author: jenkinsAuthored: Tue Sep 19 10:38:17 2017 + Committer: jenkins Committed: Tue Sep 19 10:38:17 2017 + -- content/helping.html | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/08f87530/content/helping.html -- diff --git a/content/helping.html b/content/helping.html index 0b27e2f..96a1431 100644 --- a/content/helping.html +++ b/content/helping.html @@ -130,13 +130,13 @@ What can my company do to help support Apache Struts? - How do I create a patch? - How can I report defects or suggest features? - How can I contribute to the Struts source code? - How can I contribute to the documentation? - So when is the next release coming out? - What can I do to help the next release along? - How can I help make the decisions? + How do I create a patch? + How can I report defects or suggest features? + How can I contribute to the Struts source code? + How can I contribute to the documentation? + So when is the next release coming out? + What can I do to help the next release along? + How can I help make the decisions? @@ -171,7 +171,7 @@ -How do I create a patch? +How do I create a patch? @@ -206,7 +206,7 @@ -How can I report defects or suggest features? +How can I report defects or suggest features? @@ -233,7 +233,7 @@ -How can I contribute to the Struts source code? +How can I contribute to the Struts source code? @@ -260,7 +260,7 @@ -How can I contribute to the documentation? +How can I contribute to the documentation? @@ -279,7 +279,7 @@ -So when is the next release coming out? +So when is the next release coming out? @@ -315,7 +315,7 @@ -What can I do to help the next release along? +What can I do to help the next release along? @@ -359,7 +359,7 @@ release. -How can I help make the decisions? +How can I help make the decisions?
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 705a6aaf2 -> a299b067f Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/a299b067 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/a299b067 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/a299b067 Branch: refs/heads/asf-site Commit: a299b067f41a28f02e7e46d9df2f46f69f9d6771 Parents: 705a6aa Author: jenkinsAuthored: Tue Sep 19 09:46:20 2017 + Committer: jenkins Committed: Tue Sep 19 09:46:20 2017 + -- content/index.html | 2 +- content/submitting-patches.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/a299b067/content/index.html -- diff --git a/content/index.html b/content/index.html index 9d2cf19..90bc435 100644 --- a/content/index.html +++ b/content/index.html @@ -147,7 +147,7 @@ During http://www.meetup.com/sfhtml5/;>SFHTML5 Google announced that they extend their program to cover the Apache Struts project as well. Now you can earn money preparing patches for us! - read more + read more http://git-wip-us.apache.org/repos/asf/struts-site/blob/a299b067/content/submitting-patches.html -- diff --git a/content/submitting-patches.html b/content/submitting-patches.html index 17bfda5..ac5db92 100644 --- a/content/submitting-patches.html +++ b/content/submitting-patches.html @@ -137,7 +137,7 @@ Further reading - Googleâs Patch Reward program + Googleâs Patch Reward program Committers @@ -326,7 +326,7 @@ git merge some-branch -m "WW- Merges #28 which resolves ..." http://wiki.apache.org/general/GitAtApache;>Git at Apache -Googleâs Patch Reward program +Googleâs Patch Reward program During http://www.meetup.com/sfhtml5/;>SFHTML5 Google announced that they adding the Apache Struts project to https://www.google.com/about/appsecurity/patch-rewards/;>the Googleâs Security Patch Reward Program.
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site c0b0f3280 -> 705a6aaf2 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/705a6aaf Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/705a6aaf Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/705a6aaf Branch: refs/heads/asf-site Commit: 705a6aaf2fcdca0d3c6280f56f8ef8848d9dd0ba Parents: c0b0f32 Author: jenkinsAuthored: Tue Sep 19 06:33:11 2017 + Committer: jenkins Committed: Tue Sep 19 06:33:11 2017 + -- content/helping.html | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/705a6aaf/content/helping.html -- diff --git a/content/helping.html b/content/helping.html index 8cea379..0b27e2f 100644 --- a/content/helping.html +++ b/content/helping.html @@ -130,13 +130,13 @@ What can my company do to help support Apache Struts? - How do I create a patch? - How can I report defects or suggest features? - How can I contribute to the Struts source code? - How can I contribute to the documentation? - So when is the next release coming out? - What can I do to help the next release along? - How can I help make the decisions? + How do I create a patch? + How can I report defects or suggest features? + How can I contribute to the Struts source code? + How can I contribute to the documentation? + So when is the next release coming out? + What can I do to help the next release along? + How can I help make the decisions? @@ -171,7 +171,7 @@ -How do I create a patch? +How do I create a patch? @@ -206,7 +206,7 @@ -How can I report defects or suggest features? +How can I report defects or suggest features? @@ -233,7 +233,7 @@ -How can I contribute to the Struts source code? +How can I contribute to the Struts source code? @@ -260,7 +260,7 @@ -How can I contribute to the documentation? +How can I contribute to the documentation? @@ -279,7 +279,7 @@ -So when is the next release coming out? +So when is the next release coming out? @@ -315,7 +315,7 @@ -What can I do to help the next release along? +What can I do to help the next release along? @@ -359,7 +359,7 @@ release. -How can I help make the decisions? +How can I help make the decisions?
[2/3] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/c0b0f328/content/plugins/plugin-developers.html -- diff --git a/content/plugins/plugin-developers.html b/content/plugins/plugin-developers.html new file mode 100644 index 000..1d88b8c --- /dev/null +++ b/content/plugins/plugin-developers.html @@ -0,0 +1,8786 @@ + + + + + + + + + + Plugins Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/plugins/plugin-developers.md; title="Edit this page on GitHub">Edit on GitHub +#Plugin Developers Guide# {#PAGE_44163} + +Apache Struts 2 provides a simple plugin architecture so that developers can extend the framework just by adding a JAR to the applicationâs classpath. Since plugins are contained in a JAR, they are easy to share with others. Several plugins are bundled with the framework, and others are available from third-party sources. + + + + + + + + + + + + + + + + + + + + Plugins + + + + + + + + + + + + + + + + Extending an Application with Custom Plugins + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundled Plugins + + + + + + + + + + + + + + + + + + + + + + + + + +| |\ +\ ++ Bean Validation Plugin (2.5+)\ +\ ++ CDI (JSR 299) Plugin (2.3.1+)\ +\ ++ Codebehind Plugin ( 2.5)\ +\ ++ Config Browser Plugin\ +\ ++ Convention Plugin (2.1.3+)\ +\ ++ DWR Plugin\ +\ ++ Embedded JSP Plugin (2.1.7+)\ +\ ++ JasperReports Plugin\ +\ ++ Java 8 Support Plugin (2.3.21 - 2.5.2)\ +\ ++ Javatemplates Plugin (2.1.3+)\ +\ ++ JFreeChart Plugin\ +\ ++ JSF Plugin( 2.5)\ +\ ++ JSON Plugin (2.1.7+)\ +\ ++ JUnit Plugin\ +|\ +\ ++ OVal Plugin (2.1.7+)\ +\ ++ OSGi Plugin (2.1.7+)\ +\ ++ Plexus Plugin\ +\ ++ Portlet Plugin\ +\ ++ Portlet Tiles Plugin (2.3.5+)\ +\ ++ REST Plugin (2.1.1+)\ +\ ++ Deprecated: SiteGraph Plugin\ +\ ++ SiteMesh Plugin\ +\ ++ Spring Plugin\ +\ ++ Struts 1 Plugin( 2.5)\ +\ ++ TestNG Plugin\ +\ ++ Tiles Plugin\ +\ ++ Tiles 3 Plugin ( 2.5)\ +|
[2/5] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/tag-developers/index.html -- diff --git a/content/tag-developers/index.html b/content/tag-developers/index.html new file mode 100644 index 000..7a8d8e1 --- /dev/null +++ b/content/tag-developers/index.html @@ -0,0 +1,8428 @@ + + + + + + + + + + Tag Developers Guide (WIP) + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Tag Developers Guide +Maven Archetypes +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +https://github.com/apache/struts-site/edit/master/source/tag-developers/index.md; title="Edit this page on GitHub">Edit on GitHub +#Tag Developers Guide# {#PAGE_14324} + +The framework offers a flexible view layer that supports multiple view technologies, including JSP, FreeMaker, and Velocity. + + + + + + + + + + + + + + + +| |\ +\ ++ Struts Tags\ +\ + + Generic Tags\ +\ + + UI Tags\ +\ + + Themes and Templates\ +\ + + Tag Reference\ +\ + + Ajax Tags\ +\ ++ Ajax and JavaScript Recipes\ +\ ++ OGNL\ +\ ++ Tag Syntax\ +\ ++ Alt Syntax \ +|\ +\ ++ JSP\ +\ + + specific tags\ +\ ++ FreeMarker\ +\ + + specific tags\ +\ ++ Velocity\ +\ + + specific tags\ +| +|ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ-|âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ| + + + + + + + + +###Next:### + +##FreeMarker## {#PAGE_14078} + +FreeMarker is a Java-based template engine that is a great alternative to JSP. FreeMarker is ideal for situations where your action results can possibly be loaded from outside a Servlet container. For example, if you wished to support plugins in your application, you might wish to use FreeMarker so that the plugins could provide the entire action class and view in a single jar that is loaded from the classloader. + +For more information on FreeMarker itself, please visit the http://freemarker\.sourceforge\.net/;>FreeMarker website^[http://freemarker.sourceforge.net/]. + + + + +
[3/5] struts-site git commit: Updates production by Jenkins
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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API 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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API 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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API 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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API 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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API 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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API 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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API 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 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API
[4/5] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/file-upload.html -- diff --git a/content/core-developers/file-upload.html b/content/core-developers/file-upload.html index 5b5ce26..e4784c3 100644 --- a/content/core-developers/file-upload.html +++ b/content/core-developers/file-upload.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/formatting-dates-and-numbers.html -- diff --git a/content/core-developers/formatting-dates-and-numbers.html b/content/core-developers/formatting-dates-and-numbers.html index 77a62d0..71a0df5 100644 --- a/content/core-developers/formatting-dates-and-numbers.html +++ b/content/core-developers/formatting-dates-and-numbers.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/freemarker-result.html -- diff --git a/content/core-developers/freemarker-result.html b/content/core-developers/freemarker-result.html index fbcfae9..0f8f3e2 100644 --- a/content/core-developers/freemarker-result.html +++ b/content/core-developers/freemarker-result.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/freemarker-support.html -- diff --git a/content/core-developers/freemarker-support.html b/content/core-developers/freemarker-support.html index caa4534..a48b727 100644 --- a/content/core-developers/freemarker-support.html +++ b/content/core-developers/freemarker-support.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/glassfish-2-x.html -- diff --git a/content/core-developers/glassfish-2-x.html b/content/core-developers/glassfish-2-x.html index ea870cd..30f027c 100644 --- a/content/core-developers/glassfish-2-x.html +++ b/content/core-developers/glassfish-2-x.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/httpheader-result.html -- diff --git a/content/core-developers/httpheader-result.html b/content/core-developers/httpheader-result.html index 0f89293..0a4133c 100644 --- a/content/core-developers/httpheader-result.html +++ b/content/core-developers/httpheader-result.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/https-and-ie-issues.html -- diff --git a/content/core-developers/https-and-ie-issues.html b/content/core-developers/https-and-ie-issues.html index 86fd402..15cf391 100644 --- a/content/core-developers/https-and-ie-issues.html +++ b/content/core-developers/https-and-ie-issues.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/core-developers/i18n-interceptor.html -- diff --git a/content/core-developers/i18n-interceptor.html b/content/core-developers/i18n-interceptor.html index
[5/5] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/fab964f2 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/fab964f2 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/fab964f2 Branch: refs/heads/asf-site Commit: fab964f2fd4d1ca9bf794bf8d869e4a0985634f1 Parents: 2b8daa9 Author: jenkinsAuthored: Mon Sep 18 07:39:22 2017 + Committer: jenkins Committed: Mon Sep 18 07:39:22 2017 + -- content/announce-2002.html |1 + content/announce-2003.html |1 + content/announce-2004.html |1 + content/announce-2005.html |1 + content/announce-2006.html |1 + content/announce-2007.html |1 + content/announce-2008.html |1 + content/announce-2009.html |1 + content/announce-2010.html |1 + content/announce-2011.html |1 + content/announce-2012.html |1 + content/announce-2013.html |1 + content/announce-2014.html |1 + content/announce-2015.html |1 + content/announce-2016.html |1 + content/announce.html |1 + content/birdseye.html |1 + content/builds.html |1 + content/bylaws.html |1 + content/coding-standards.html |1 + ...ing-application-session-request-objects.html |1 + content/core-developers/action-chaining.html|1 + .../core-developers/action-configuration.html |1 + .../core-developers/action-event-listener.html |1 + .../action-mapper-and-action-mapping.html |1 + content/core-developers/action-mapper.html |1 + .../action-proxy-and-actionproxy-factory.html |1 + content/core-developers/after-annotation.html |1 + .../ajax-client-side-validation.html|1 + content/core-developers/ajax.html |1 + content/core-developers/alias-interceptor.html |1 + .../annotation-workflow-interceptor.html|1 + content/core-developers/annotations.html|1 + .../core-developers/application-servers.html|1 + content/core-developers/basic-validation.html |1 + content/core-developers/bean-configuration.html |1 + content/core-developers/before-annotation.html |1 + .../before-result-annotation.html |1 + content/core-developers/chain-result.html |1 + .../core-developers/chaining-interceptor.html |1 + .../core-developers/checkbox-interceptor.html |1 + .../core-developers/client-side-validation.html |1 + content/core-developers/client-validation.html |1 + .../conditionalvisitor-validator.html |1 + .../core-developers/configuration-elements.html |1 + .../core-developers/configuration-files.html|1 + ...onfiguration-provider-and-configuration.html |1 + .../core-developers/constant-configuration.html |1 + .../core-developers/conversion-annotation.html |1 + ...ersion-error-field-validator-annotation.html |1 + .../conversion-error-interceptor.html |1 + .../core-developers/conversion-validator.html |1 + content/core-developers/cookie-interceptor.html |1 + .../cookie-provider-interceptor.html|1 + .../create-if-null-annotation.html |1 + .../create-session-interceptor.html |1 + .../custom-validator-annotation.html|1 + .../date-range-field-validator-annotation.html |1 + content/core-developers/date-validator.html |1 + .../core-developers/debugging-interceptor.html |1 + content/core-developers/debugging.html |1 + content/core-developers/default-properties.html |1 + .../default-workflow-interceptor.html |1 + .../core-developers/dependency-injection.html |1 + content/core-developers/development-mode.html |1 + .../core-developers/dispatcher-listener.html|1 + content/core-developers/dispatcher-result.html |1 + content/core-developers/dispatcher.html |1 + ...double-range-field-validator-annotation.html |1 + content/core-developers/double-validator.html |1 + content/core-developers/element-annotation.html |1 + .../email-validator-annotation.html |1 + content/core-developers/email-validator.html|1 + .../exception-configuration.html|1 + .../core-developers/exception-interceptor.html |1 +
[1/5] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 2b8daa907 -> fab964f2f http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/volunteers.html -- diff --git a/content/volunteers.html b/content/volunteers.html index a839935..6a9045c 100644 --- a/content/volunteers.html +++ b/content/volunteers.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API http://git-wip-us.apache.org/repos/asf/struts-site/blob/fab964f2/content/youatstruts.html -- diff --git a/content/youatstruts.html b/content/youatstruts.html index 4ce50d3..206bffa 100644 --- a/content/youatstruts.html +++ b/content/youatstruts.html @@ -82,6 +82,7 @@ Security Guide Core Developers Guide Tag Developers Guide +Maven Archetypes Plugins Struts Core API
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 54c2c39b8 -> 2b8daa907 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/2b8daa90 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/2b8daa90 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/2b8daa90 Branch: refs/heads/asf-site Commit: 2b8daa907661592942fdbca6bb25a78838e45b1d Parents: 54c2c39 Author: jenkinsAuthored: Mon Sep 18 07:35:50 2017 + Committer: jenkins Committed: Mon Sep 18 07:35:50 2017 + -- content/maven-archetypes/index.md | 699 + 1 file changed, 699 insertions(+) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/2b8daa90/content/maven-archetypes/index.md -- diff --git a/content/maven-archetypes/index.md b/content/maven-archetypes/index.md new file mode 100644 index 000..b5e04df --- /dev/null +++ b/content/maven-archetypes/index.md @@ -0,0 +1,699 @@ +#Struts 2 Maven Archetypes# {#PAGE_108820} + +Struts 2 provides several [Maven](http://maven\.apache\.org/)^[http://maven\.apache\.org/] archetypes that create a starting point for our own applications\. + +**Contents** + +###Quickstart### + +A recommended way to start with Struts2 archetypes is to work with the archetype catalog\. + + +~~~ + +mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ + +~~~ + +###Available Archetypes### + +The Blank Convention Archetype (struts2\-archetype\-convention) + +#Features# + ++ Convention\-based validation + ++ Example actions + ++ Package\-level resource bundle + ++ Unit\-testing + ++ Google AppEgine aware + + + +~~~ + +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-convention \ + -DarchetypeVersion= \ + -DremoteRepositories=http://struts.apache.org + +~~~ + +The Blank Archetype (struts2\-archetype\-blank) + +See the [Struts 2 Blank Archetype](#PAGE_108834) page for more information, including some basic Maven information, how to build and run the app, and basic application information\. + + +~~~ + +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-blank \ + -DarchetypeVersion= \ + -DremoteRepositories=http://struts.apache.org + + +~~~ + +The Starter Archetype (struts2\-archetype\-starter) + +The Starter archetype creates a more featured application using several common technologies used in production applications\. + +#Features# + ++ Sitemesh integration + ++ Action example (instantiated both through Spring and Struts) + ++ Spring integration + ++ Validation example (action and action\-alias level) + ++ Conversion example (global and action level) + ++ Resource bundle (both global, action and package level) + + + +~~~ + +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-starter \ + -DarchetypeVersion= \ + -DremoteRepositories=http://struts.apache.org + +~~~ + +The AngularJS Archetype (struts2\-archetype\-angularjs) + +#Features# + ++ Convention\-based Action Configuration + ++ Example actions with JSON Result + ++ Example for AngularJS and Struts2 Integration + + + +~~~ + +mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \ + -DartifactId=myWebApp \ + -DarchetypeGroupId=org.apache.struts \ + -DarchetypeArtifactId=struts2-archetype-angularjs \ +
[4/7] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/sunone-7-0.html -- diff --git a/content/core-developers/sunone-7-0.html b/content/core-developers/sunone-7-0.html index b0713c8..84e1e97 100644 --- a/content/core-developers/sunone-7-0.html +++ b/content/core-developers/sunone-7-0.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/timer-interceptor.html -- diff --git a/content/core-developers/timer-interceptor.html b/content/core-developers/timer-interceptor.html index 877391e..7f85c19 100644 --- a/content/core-developers/timer-interceptor.html +++ b/content/core-developers/timer-interceptor.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/token-interceptor.html -- diff --git a/content/core-developers/token-interceptor.html b/content/core-developers/token-interceptor.html index a5a2564..e5e0f16 100644 --- a/content/core-developers/token-interceptor.html +++ b/content/core-developers/token-interceptor.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/token-session-interceptor.html -- diff --git a/content/core-developers/token-session-interceptor.html b/content/core-developers/token-session-interceptor.html index e76713c..843ed9f 100644 --- a/content/core-developers/token-session-interceptor.html +++ b/content/core-developers/token-session-interceptor.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/type-conversion-annotation.html -- diff --git a/content/core-developers/type-conversion-annotation.html b/content/core-developers/type-conversion-annotation.html index dc1d6bd..2b3bcf2 100644 --- a/content/core-developers/type-conversion-annotation.html +++ b/content/core-developers/type-conversion-annotation.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins
[6/7] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/configuration-files.html -- diff --git a/content/core-developers/configuration-files.html b/content/core-developers/configuration-files.html index aec18e8..71d09bb 100644 --- a/content/core-developers/configuration-files.html +++ b/content/core-developers/configuration-files.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/configuration-provider-and-configuration.html -- diff --git a/content/core-developers/configuration-provider-and-configuration.html b/content/core-developers/configuration-provider-and-configuration.html index cfde2be..4e66488 100644 --- a/content/core-developers/configuration-provider-and-configuration.html +++ b/content/core-developers/configuration-provider-and-configuration.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/constant-configuration.html -- diff --git a/content/core-developers/constant-configuration.html b/content/core-developers/constant-configuration.html index 9ef54cb..8b0e84b 100644 --- a/content/core-developers/constant-configuration.html +++ b/content/core-developers/constant-configuration.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/conversion-annotation.html -- diff --git a/content/core-developers/conversion-annotation.html b/content/core-developers/conversion-annotation.html index 4ad07f5..3d4a6b4 100644 --- a/content/core-developers/conversion-annotation.html +++ b/content/core-developers/conversion-annotation.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/conversion-error-field-validator-annotation.html -- diff --git a/content/core-developers/conversion-error-field-validator-annotation.html b/content/core-developers/conversion-error-field-validator-annotation.html index 078f2f6..5338454 100644 --- a/content/core-developers/conversion-error-field-validator-annotation.html +++
[7/7] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/54c2c39b Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/54c2c39b Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/54c2c39b Branch: refs/heads/asf-site Commit: 54c2c39b8984965baedbb79ef0aeaa38de534513 Parents: ee1e480 Author: jenkinsAuthored: Mon Sep 18 07:28:58 2017 + Committer: jenkins Committed: Mon Sep 18 07:28:58 2017 + -- content/announce-2002.html |7 +- content/announce-2003.html |7 +- content/announce-2004.html |7 +- content/announce-2005.html |7 +- content/announce-2006.html |7 +- content/announce-2007.html |7 +- content/announce-2008.html |7 +- content/announce-2009.html |7 +- content/announce-2010.html |7 +- content/announce-2011.html |7 +- content/announce-2012.html |7 +- content/announce-2013.html |7 +- content/announce-2014.html |7 +- content/announce-2015.html |7 +- content/announce-2016.html |7 +- content/announce.html |7 +- content/birdseye.html |7 +- content/builds.html |7 +- content/bylaws.html |7 +- content/coding-standards.html |7 +- ...ing-application-session-request-objects.html |7 +- content/core-developers/action-chaining.html|7 +- .../core-developers/action-configuration.html |7 +- .../core-developers/action-event-listener.html |7 +- .../action-mapper-and-action-mapping.html |7 +- content/core-developers/action-mapper.html |7 +- .../action-proxy-and-actionproxy-factory.html |7 +- content/core-developers/after-annotation.html |7 +- .../ajax-client-side-validation.html|7 +- content/core-developers/ajax.html |7 +- content/core-developers/alias-interceptor.html |7 +- .../annotation-workflow-interceptor.html|7 +- content/core-developers/annotations.html|7 +- .../core-developers/application-servers.html|7 +- content/core-developers/basic-validation.html |7 +- content/core-developers/bean-configuration.html |7 +- content/core-developers/before-annotation.html |7 +- .../before-result-annotation.html |7 +- content/core-developers/chain-result.html |7 +- .../core-developers/chaining-interceptor.html |7 +- .../core-developers/checkbox-interceptor.html |7 +- .../core-developers/client-side-validation.html |7 +- content/core-developers/client-validation.html |7 +- .../conditionalvisitor-validator.html |7 +- .../core-developers/configuration-elements.html |7 +- .../core-developers/configuration-files.html|7 +- ...onfiguration-provider-and-configuration.html |7 +- .../core-developers/constant-configuration.html |7 +- .../core-developers/conversion-annotation.html |7 +- ...ersion-error-field-validator-annotation.html |7 +- .../conversion-error-interceptor.html |7 +- .../core-developers/conversion-validator.html |7 +- content/core-developers/cookie-interceptor.html |7 +- .../cookie-provider-interceptor.html|7 +- .../create-if-null-annotation.html |7 +- .../create-session-interceptor.html |7 +- .../custom-validator-annotation.html|7 +- .../date-range-field-validator-annotation.html |7 +- content/core-developers/date-validator.html |7 +- .../core-developers/debugging-interceptor.html |7 +- content/core-developers/debugging.html |7 +- content/core-developers/default-properties.html |7 +- .../default-workflow-interceptor.html |7 +- .../core-developers/dependency-injection.html |7 +- content/core-developers/development-mode.html |7 +- .../core-developers/dispatcher-listener.html|7 +- content/core-developers/dispatcher-result.html |7 +- content/core-developers/dispatcher.html |7 +- ...double-range-field-validator-annotation.html |7 +- content/core-developers/double-validator.html |7 +- content/core-developers/element-annotation.html |7 +- .../email-validator-annotation.html |7 +- content/core-developers/email-validator.html|7 +- .../exception-configuration.html|
[2/7] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/tag-developers/index.md -- diff --git a/content/tag-developers/index.md b/content/tag-developers/index.md new file mode 100644 index 000..4a6c28a --- /dev/null +++ b/content/tag-developers/index.md @@ -0,0 +1,7830 @@ +#Tag Developers Guide# {#PAGE_14324} + + +The framework offers a flexible view layer that supports multiple view technologies, including JSP, FreeMaker, and Velocity\. + +| + +| + +| |\ +\ ++ [Struts Tags](#PAGE_14248)\ +\ + + [Generic Tags](#PAGE_19745)\ +\ + + [UI Tags](#PAGE_19736)\ +\ + + [Themes and Templates](#PAGE_14247)\ +\ + + [Tag Reference](#PAGE_19705)\ +\ + + [Ajax Tags](#PAGE_31510)\ +\ ++ [Ajax and JavaScript Recipes](#PAGE_56182)\ +\ ++ [OGNL](#PAGE_14198)\ +\ ++ [Tag Syntax](#PAGE_13927)\ +\ ++ _Alt Syntax_ \ +|\ +\ ++ [JSP](#PAGE_14141)\ +\ + + [specific tags](#PAGE_13973)\ +\ ++ [FreeMarker](#PAGE_14078)\ +\ + + [specific tags](#PAGE_14294)\ +\ ++ [Velocity](#PAGE_13894)\ +\ + + [specific tags](#PAGE_13950)\ +| +|-|--| + + +| + +###Next:### + +##FreeMarker## {#PAGE_14078} + + +FreeMarker is a Java\-based template engine that is a great alternative to [JSP](#PAGE_14141)\. FreeMarker is ideal for situations where your action results can possibly be loaded from outside a Servlet container\. For example, if you wished to support plugins in your application, you might wish to use FreeMarker so that the plugins could provide the entire action class and view in a single jar that is loaded from the classloader\. + +For more information on FreeMarker itself, please visit the [FreeMarker website](http://freemarker\.sourceforge\.net/)^[http://freemarker\.sourceforge\.net/]\. + + + +| The framework utilizes FreeMarker because the engine includes strong error reporting, built\-in internationalization and powerful macro libraries\. + +| + +| + +| Support is also included for [Velocity](#PAGE_13894) templates\. For a comparison of Velocity vs FreeMarker see [here](http://freemarker\.org/fmVsVel\.html)^[http://freemarker\.org/fmVsVel\.html]\. + +| + +Getting Started + +Getting started with FreeMarker is as simple as ensuring all the dependencies are included in your project's classpath\. Typically, the only dependency is + +~~~ +freemarker.jar +~~~ +\. Other than that, _struts\-default\.xml_ already configures the _FreeMarker Result_ needed to process your application's templates\. + + +~~~ + +test-success.ftl + + +~~~ + +Then in + +~~~ +test-success.ftl +~~~ +: + + +~~~ + + +Hello + + + +Hello, ${name} + + + + +~~~ + +Where + +~~~ +name +~~~ + is a property on your action\. That's it\! Read the rest of this document for details on how templates are loaded, variables are resolved, and tags can be used\. + +Servlet / JSP Scoped Objects + +The following are ways to obtained Application scope attributes, Session scope attributes, Request scope attributes, Request parameters, and framework Context scope parameters:\- + +#Application Scope Attribute# + +Assuming there's an attribute with name + +~~~ +myApplicationAttribute +~~~ + in the Application scope\. + + +~~~ +<#if Application.myApplicationAttribute?exists> + ${Application.myApplicationAttribute} + + +~~~ + +or + + +~~~ +<@s.property value="%{#application.myApplicationAttribute}" /> + +~~~ + +#Session Scope Attribute# + +Assuming there's an attribute with name + +~~~ +mySessionAttribute +~~~ + in the Session scope\. + + +~~~ +<#if Session.mySessionAttribute?exists> + ${Session.mySessionAttribute} + + +~~~ + +or + + +~~~ +<@s.property value="%{#session.mySessionAttribute}" /> + +~~~ + +#Request Scope Attribute# + +Assuming there's an attribute with name 'myRequestAttribute' in the Request scope\. + + +~~~ +<#if Request.myRequestAttribute?exists> + ${Request.myRequestAttribute} + + +~~~ + +or + + +~~~ +<@s.property value="%{#request.myRequestAttribute}" /> + +~~~ + +#Request Parameter# + +Assuming there's a request parameter myParameter (eg\. [http://host/myApp/myAction\.action?myParameter=one](http://host/myApp/myAction\.action?myParameter=one))\. + + +~~~ +<#if Parameters.myParameter?exists> + ${Parameters.myParameter} + + +~~~ + +or + + +~~~
[1/7] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site ee1e48091 -> 54c2c39b8 http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/volunteers.html -- diff --git a/content/volunteers.html b/content/volunteers.html index d028304..a839935 100644 --- a/content/volunteers.html +++ b/content/volunteers.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/youatstruts.html -- diff --git a/content/youatstruts.html b/content/youatstruts.html index 860ae09..4ce50d3 100644 --- a/content/youatstruts.html +++ b/content/youatstruts.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED
[3/7] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/getting-started/using-tags.html -- diff --git a/content/getting-started/using-tags.html b/content/getting-started/using-tags.html index cb98514..7e70f14 100644 --- a/content/getting-started/using-tags.html +++ b/content/getting-started/using-tags.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/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 04dda4b..b859b85 100644 --- a/content/getting-started/wildcard-method-selection.html +++ b/content/getting-started/wildcard-method-selection.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/helping.html -- diff --git a/content/helping.html b/content/helping.html index beb97b4..8f6588f 100644 --- a/content/helping.html +++ b/content/helping.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/index.html -- diff --git a/content/index.html b/content/index.html index 4d20e7b..e9a85c1 100644 --- a/content/index.html +++ b/content/index.html @@ -79,6 +79,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -86,9 +87,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/kickstart.html -- diff --git a/content/kickstart.html b/content/kickstart.html index bcab93c..84643ab 100644 --- a/content/kickstart.html +++ b/content/kickstart.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED
[5/7] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/jboss-5.html -- diff --git a/content/core-developers/jboss-5.html b/content/core-developers/jboss-5.html index 56af940..211a50b 100644 --- a/content/core-developers/jboss-5.html +++ b/content/core-developers/jboss-5.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/key-annotation.html -- diff --git a/content/core-developers/key-annotation.html b/content/core-developers/key-annotation.html index c625321..9894579 100644 --- a/content/core-developers/key-annotation.html +++ b/content/core-developers/key-annotation.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/key-property-annotation.html -- diff --git a/content/core-developers/key-property-annotation.html b/content/core-developers/key-property-annotation.html index 2257f48..dc92d3f 100644 --- a/content/core-developers/key-property-annotation.html +++ b/content/core-developers/key-property-annotation.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/localization.html -- diff --git a/content/core-developers/localization.html b/content/core-developers/localization.html index ae5bb34..d671b14 100644 --- a/content/core-developers/localization.html +++ b/content/core-developers/localization.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry -Tutorials - DEPRECATED -FAQs - DEPRECATED -Guides - DEPRECATED +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/54c2c39b/content/core-developers/logger-interceptor.html -- diff --git a/content/core-developers/logger-interceptor.html b/content/core-developers/logger-interceptor.html index f7e00eb..8cf5d39 100644 --- a/content/core-developers/logger-interceptor.html +++ b/content/core-developers/logger-interceptor.html @@ -81,6 +81,7 @@ Getting Started Security Guide Core Developers Guide +Tag Developers Guide Plugins Struts Core API @@ -88,9 +89,9 @@ Tag reference
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site da930b5a6 -> ee1e48091 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/ee1e4809 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/ee1e4809 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/ee1e4809 Branch: refs/heads/asf-site Commit: ee1e480916eef6f78a38a0bb9f4e7699c12c1984 Parents: da930b5 Author: jenkinsAuthored: Thu Sep 14 20:04:23 2017 + Committer: jenkins Committed: Thu Sep 14 20:04:23 2017 + -- content/css/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/ee1e4809/content/css/custom.css -- diff --git a/content/css/custom.css b/content/css/custom.css index 26451de..3155536 100644 --- a/content/css/custom.css +++ b/content/css/custom.css @@ -32,7 +32,7 @@ a.anchor { a.edit-on-gh { position: absolute; - right: 0; + left: 0; top: 0; display: block;
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 2ec9aaf18 -> da930b5a6 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/da930b5a Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/da930b5a Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/da930b5a Branch: refs/heads/asf-site Commit: da930b5a643bb1a2938d1cb32839cc9f08e2bd08 Parents: 2ec9aaf Author: jenkinsAuthored: Tue Sep 12 10:30:48 2017 + Committer: jenkins Committed: Tue Sep 12 10:30:48 2017 + -- content/plugins/json/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/da930b5a/content/plugins/json/index.html -- diff --git a/content/plugins/json/index.html b/content/plugins/json/index.html index ea58355..181e276 100644 --- a/content/plugins/json/index.html +++ b/content/plugins/json/index.html @@ -7,7 +7,7 @@ - Convention plugin + JSON plugin
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 0dccbe248 -> 2ec9aaf18 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/2ec9aaf1 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/2ec9aaf1 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/2ec9aaf1 Branch: refs/heads/asf-site Commit: 2ec9aaf1882e0c757434e0e22d5c3fbf3876a5a5 Parents: 0dccbe2 Author: jenkinsAuthored: Tue Sep 12 10:30:09 2017 + Committer: jenkins Committed: Tue Sep 12 10:30:09 2017 + -- content/plugins/json/index.html | 92 1 file changed, 50 insertions(+), 42 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/2ec9aaf1/content/plugins/json/index.html -- diff --git a/content/plugins/json/index.html b/content/plugins/json/index.html index 84274cb..ea58355 100644 --- a/content/plugins/json/index.html +++ b/content/plugins/json/index.html @@ -135,6 +135,7 @@ Including properties Root Object Wrapping + Wrap with Comments Prefix Base Classes Enumerations @@ -341,56 +342,63 @@ the beginning and wrapPostfix to add cont and prefix which are deprecated from 0.34 on. Examples: - Wrap with comments: -```xml + Wrap with comments: - - /* - */ - - -- Add a prefix: -```xml -result type="json" - param name="wrapPrefix"{}/param -/result + +result type="json" + param name="wrapPrefix"/*/param + param name="wrapSuffix"*//param +/result + + + + + Add a prefix: + + +result type="json" + param name="wrapPrefix"{}/param +/result - Wrap for file upload: -```xml + Wrap for file upload: - - ![CDATA[]] - ![CDATA[]] - - -### Wrap with Comments - -`wrapWithComments` is deprecated from 0.34, use `wrapPrefix` and `wrapSuffix` instead. - - `wrapWithComments` can turn safe JSON text into dangerous text. For example, - `"\*/ alert('XSS'); /\*"` - Thanks to Douglas Crockford for the tip! Consider using **prefix** instead. - -If the serialized JSON is `{name: 'El Zorro'}`. Then the output will be: `{} ({name: 'El Zorro'})`. - -If the `wrapWithComments` (false by default) attribute is set to true, the generated JSON is wrapped with comments like: - -```json -/* { - "doubleVal": 10.10, - "nestedBean": { - "name": "Mr Bean" - }, - "list": ["A", 10, 20.20, { - "firstName": "El Zorro" - }], - "array": [10, 20] -} */ + +result type="json" + param name="wrapPrefix"![CDATA[htmlbodytextarea]]/param + param name="wrapSuffix"![CDATA[/textarea/body/html]]/param +/result + +Wrap with Comments + +wrapWithComments is deprecated from 0.34, use wrapPrefix and wrapSuffix instead. + + + wrapWithComments can turn safe JSON text into dangerous text. For example, +"\*/ alert('XSS'); /\*" +Thanks to Douglas Crockford for the tip! Consider using prefix instead. + + +If the serialized JSON is {name: 'El Zorro'}. Then the output will be: {} ({name: 'El Zorro'}). + +If the wrapWithComments (false by default) attribute is set to true, the generated JSON is wrapped with comments like: + +/* { + "doubleVal": 10.10, + "nestedBean": { + "name": "Mr Bean" + }, + "list": ["A", 10, 20.20, { + "firstName": "El Zorro" + }], + "array": [10, 20] +} */ + + To strip those comments use: var responseObject = eval("("+data.substring(data.indexOf("\/\*")+2, data.lastIndexOf("\*\/"))+")");
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 77840af47 -> 0dccbe248 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/0dccbe24 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/0dccbe24 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/0dccbe24 Branch: refs/heads/asf-site Commit: 0dccbe2489992b620788bcb5d2cb966cd5d786f2 Parents: 77840af Author: jenkinsAuthored: Tue Sep 12 10:28:28 2017 + Committer: jenkins Committed: Tue Sep 12 10:28:28 2017 + -- content/core-developers/plaintext-result.html | 33 +++--- 1 file changed, 23 insertions(+), 10 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/0dccbe24/content/core-developers/plaintext-result.html -- diff --git a/content/core-developers/plaintext-result.html b/content/core-developers/plaintext-result.html index 362a738..ff7b772 100644 --- a/content/core-developers/plaintext-result.html +++ b/content/core-developers/plaintext-result.html @@ -127,20 +127,33 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/plaintext-result.md; title="Edit this page on GitHub">Edit on GitHub PlainText Result -{snippet:id=description|javadoc=true|url=org.apache.struts2.dispatcher.PlainTextResult} - - +Description -#Parameters# +A result that send the content out as plain text. Useful typically when needed +to display the raw content of a JSP or Html file for example. -{snippet:id=params|javadoc=true|url=org.apache.struts2.dispatcher.PlainTextResult} - - +Parameters + + + location (default) - location of the file (jsp/html) to be displayed as plain text. + charSet (optional) - character set to be used. This character set will be used to set the response type +(eg. Content-Type=text/plain; charset=UTF-8) and when reading using a Reader. Some example of charSet would be +UTF-8, ISO-8859-1 etc. + + +Examples -#Examples# +action name="displayJspRawContent" + result type="plainText"/myJspFile.jsp/result +/action -{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.dispatcher.PlainTextResult} - +action name="displayJspRawContent" + result type="plainText" + param name="location"/myJspFile.jsp/param + param name="charSet"UTF-8/param + /result +/action +
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 740bd3f6d -> 77840af47 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/77840af4 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/77840af4 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/77840af4 Branch: refs/heads/asf-site Commit: 77840af477a698dde0edec39988c5646f3953c4f Parents: 740bd3f Author: jenkinsAuthored: Tue Sep 12 10:01:49 2017 + Committer: jenkins Committed: Tue Sep 12 10:01:49 2017 + -- content/plugins/index.html | 1 + content/plugins/json/index.html | 893 +++ 2 files changed, 894 insertions(+) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/77840af4/content/plugins/index.html -- diff --git a/content/plugins/index.html b/content/plugins/index.html index 0391bc5..866108f 100644 --- a/content/plugins/index.html +++ b/content/plugins/index.html @@ -128,6 +128,7 @@ Convention plugin + JSON plugin JUnit plugin http://git-wip-us.apache.org/repos/asf/struts-site/blob/77840af4/content/plugins/json/index.html -- diff --git a/content/plugins/json/index.html b/content/plugins/json/index.html new file mode 100644 index 000..84274cb --- /dev/null +++ b/content/plugins/json/index.html @@ -0,0 +1,893 @@ + + + + + + + + + + Convention plugin + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Core Developers Guide +Plugins + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +<< back to Plugins +https://github.com/apache/struts-site/edit/master/source/plugins/json/index.md; title="Edit this page on GitHub">Edit on GitHub +JSON Plugin + + + Description + Installation + Customizing Serialization and Deserialization + Excluding properties + Including properties + Root Object + Wrapping + Prefix + Base Classes + Enumerations + Compressing the output + Preventing the browser from caching the response + Excluding properties with null values + Status and Error code + JSONP + Content Type + Encoding + + + Example +
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 5474d2180 -> 740bd3f6d Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/740bd3f6 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/740bd3f6 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/740bd3f6 Branch: refs/heads/asf-site Commit: 740bd3f6de3297b9b815466a4a00e2b386ce5f09 Parents: 5474d21 Author: jenkinsAuthored: Mon Sep 11 19:58:52 2017 + Committer: jenkins Committed: Mon Sep 11 19:58:52 2017 + -- .../conditionalvisitor-validator.html | 25 --- content/core-developers/email-validator.html| 66 -- .../fieldexpression-validator.html | 47 - content/core-developers/regex-validator.html| 63 -- content/core-developers/short-validator.html| 66 -- .../core-developers/stringlength-validator.html | 70 +--- content/core-developers/visitor-validator.html | 51 -- 7 files changed, 253 insertions(+), 135 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/740bd3f6/content/core-developers/conditionalvisitor-validator.html -- diff --git a/content/core-developers/conditionalvisitor-validator.html b/content/core-developers/conditionalvisitor-validator.html index 940fa38..1e5b76d 100644 --- a/content/core-developers/conditionalvisitor-validator.html +++ b/content/core-developers/conditionalvisitor-validator.html @@ -127,22 +127,25 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/conditionalvisitor-validator.md; title="Edit this page on GitHub">Edit on GitHub conditionalvisitor validator -Description +Description -{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ConditionalVisitorFieldValidator} - - +The ConditionalVisitorFieldValidator will forward validation to the VisitorFieldValidator only if the expression will evaluate to true. -Parameters +Parameters -{snippet:id=parameters|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ConditionalVisitorFieldValidator} - - + + expression - an OGNL expression which should evaluate to true to pass validation to the VisitorFieldValidator. + -Examples +Examples -{snippet:id=example|lang=xml|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ConditionalVisitorFieldValidator} - +field name="colleaguePosition" +field-validator type="conditionalvisitor" +param name="expression"reason == 'colleague' and colleaguePositionID == 'OTHER'/param +messageYou must select reason Colleague and position Other/message +/field-validator +/field + http://git-wip-us.apache.org/repos/asf/struts-site/blob/740bd3f6/content/core-developers/email-validator.html -- diff --git a/content/core-developers/email-validator.html b/content/core-developers/email-validator.html index 4fc50d8..a5969a5 100644 --- a/content/core-developers/email-validator.html +++ b/content/core-developers/email-validator.html @@ -127,36 +127,60 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/email-validator.md; title="Edit this page on GitHub">Edit on GitHub email validator -Description +Description -{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.validator.validators.EmailValidator} - - +EmailValidator checks that a given String field, if not empty, is a valid email address. -Parameters +The regular expression used to validate that the string is an email address is: -{snippet:id=parameters|javadoc=true|url=com.opensymphony.xwork2.validator.validators.EmailValidator} - +\\b^['_a-z0-9-\\+](\\.['_a-z0-9-\\+])@[a-z0-9-](\\.[a-z0-9-])\\.([a-z]{2,6})$\\b + -(!) Warning +You can also specify expression, caseSensitive and trim params as a OGNL expression, see the example below. + +Parameters + + + fieldName - The field name this validator is validating. Required if using Plain-Validator Syntax otherwise not required. + + +Check also documentation of the RegexpValidator for more details - the EmailValidator is based on it. - - - -{snippet:id=parameters-warning -javadoc=true - url=com.opensymphony.xwork2.validator.validators.EmailValidator} - - - + Warning +Do not use ${regexExpression}, ${caseSensitiveExpression} and ${trimExpression} as an expression as this will turn into infinitive loop! -Examples -
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 0898ed78f -> 073acc782 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/073acc78 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/073acc78 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/073acc78 Branch: refs/heads/asf-site Commit: 073acc782e97e114acdefe182e7d2db1dca26568 Parents: 0898ed7 Author: jenkinsAuthored: Sun Sep 10 21:47:44 2017 + Committer: jenkins Committed: Sun Sep 10 21:47:44 2017 + -- content/core-developers/date-validator.html | 4 +- .../core-developers/expression-validator.html | 25 content/core-developers/int-validator.html | 66 +--- content/core-developers/required-validator.html | 1 - content/core-developers/url-validator.html | 21 +++ 5 files changed, 67 insertions(+), 50 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/073acc78/content/core-developers/date-validator.html -- diff --git a/content/core-developers/date-validator.html b/content/core-developers/date-validator.html index 87fa0c9..177b5c6 100644 --- a/content/core-developers/date-validator.html +++ b/content/core-developers/date-validator.html @@ -136,7 +136,7 @@ Parameters - `fieldName - The field name this validator is validating. Required if using Plain-Validator Syntax otherwise not required. + fieldName - The field name this validator is validating. Required if using Plain-Validator Syntax otherwise not required. min - the min date range. If not specified will not be checked. max - the max date range. If not specified will not be checked. parse - if set to true, minExpression and maxExpression will be evaluated to find min/max. @@ -144,7 +144,7 @@ maxExpression - expression to calculate the maximum value (if none is specified, it will not be checked). -You can either use the min / max value or minExpression / maxExpression (when parse is set to true) - using expression can be slightly slower, see the example below. +You can either use the min / max value or minExpression / maxExpression (when parse is set to true) - using expression can be slightly slower, see the example below. Warning http://git-wip-us.apache.org/repos/asf/struts-site/blob/073acc78/content/core-developers/expression-validator.html -- diff --git a/content/core-developers/expression-validator.html b/content/core-developers/expression-validator.html index 491c3fa..cd26753 100644 --- a/content/core-developers/expression-validator.html +++ b/content/core-developers/expression-validator.html @@ -127,22 +127,25 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/expression-validator.md; title="Edit this page on GitHub">Edit on GitHub expression validator -Description +Description -{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ExpressionValidator} - - +A Non-Field Level validator that validates based on regular expression supplied. -Parameters +Parameters -{snippet:id=parameters|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ExpressionValidator} - - + + expression - the Ognl expression to be evaluated against the stack (Must evaluate to a Boolean). + -Examples +Examples -{snippet:id=example|lang=xml|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ExpressionValidator} - +validators + validator type="expression" + param name="expression" /param + messageFailed to meet Ognl Expression /message + /validator +/validators + http://git-wip-us.apache.org/repos/asf/struts-site/blob/073acc78/content/core-developers/int-validator.html -- diff --git a/content/core-developers/int-validator.html b/content/core-developers/int-validator.html index 789c0cd..7dc1bd8 100644 --- a/content/core-developers/int-validator.html +++ b/content/core-developers/int-validator.html @@ -127,36 +127,58 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/int-validator.md; title="Edit this page on GitHub">Edit on GitHub int validator -Description +Description -{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator} - - +Field Validator that checks if the integer specified is within a certain range. -Parameters +Parameters
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 5fe99b224 -> 0898ed78f Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/0898ed78 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/0898ed78 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/0898ed78 Branch: refs/heads/asf-site Commit: 0898ed78f845d543350dd723e3d1dd3cb59d38bb Parents: 5fe99b2 Author: jenkinsAuthored: Sun Sep 10 21:31:32 2017 + Committer: jenkins Committed: Sun Sep 10 21:31:32 2017 + -- .../core-developers/conversion-validator.html | 92 +++- content/core-developers/date-validator.html | 68 ++- content/core-developers/double-validator.html | 69 ++- content/core-developers/required-validator.html | 45 ++ .../requiredstring-validator.html | 55 5 files changed, 230 insertions(+), 99 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/0898ed78/content/core-developers/conversion-validator.html -- diff --git a/content/core-developers/conversion-validator.html b/content/core-developers/conversion-validator.html index c55533c..80f38db 100644 --- a/content/core-developers/conversion-validator.html +++ b/content/core-developers/conversion-validator.html @@ -127,44 +127,90 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/conversion-validator.md; title="Edit this page on GitHub">Edit on GitHub conversion validator -Description +Description -{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator} - - +Field Validator that checks if a conversion error occurred for this field. -Parameters +Parameters -{snippet:id=parameters|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator} - - + + fieldName - The field name this validator is validating. Required if using Plain-Validator Syntax otherwise not required. + -Examples +Examples -{snippet:id=example|lang=xml|javadoc=true|url=com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator} - +!-- Plain Validator Syntax -- +validator type="conversion" +param name="fieldName"myField/param + messageConversion Error Occurred/message +/validator + +!-- Field Validator Syntax -- +field name="myField" + field-validator type="conversion" + messageConversion Error Occurred/message + /field-validator +/field + -Repopulating Field upon conversion Error +Repopulating Field upon conversion Error -{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport} - - +The capability of auto-repopulating the stack with a fake parameter map when a conversion error has occurred can be done with repopulateField property set to true. + +This is typically useful when one wants to repopulate the field with the original value when a conversion error occurred. Eg. with a textfield that only allows an Integer (the action class have an Integer field declared), upon conversion error, the incorrectly entered integer (maybe a text âoneâ) will not appear when dispatched back. With repopulateField property set to true, it will, meaning the textfield will have âoneâ as its value upon conversion error. -{snippet:id=exampleJspPage|lang=xml|javadoc=true|url=com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport} - +!-- myJspPage.jsp -- +s:form action="someAction" method="POST" + + s:textfield label="My Integer Field" name="myIntegerField" / + + s:submit / +/s:form + -{snippet:id=exampleXwork|lang=xml|javadoc=true|url=com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport} - +!-- xwork.xml -- +xwork +include file="xwork-default.xml" / + +package name="myPackage" extends="xwork-default" + + action name="someAction" class="example.MyActionSupport.java" + result name="input"myJspPage.jsp/result + resultsuccess.jsp/result + /action + +/package + +/xwork + -{snippet:id=exampleJava|lang=java|javadoc=true|url=com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport} - +!-- MyActionSupport.java -- +public class MyActionSupport extends ActionSupport { + private Integer myIntegerField; + + public Integer getMyIntegerField() { return this.myIntegerField; } + public void setMyIntegerField(Integer myIntegerField) { + this.myIntegerField = myIntegerField; + } +} +
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 8141e9034 -> db1dc0355 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/db1dc035 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/db1dc035 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/db1dc035 Branch: refs/heads/asf-site Commit: db1dc0355f8b5676fb1a0d69a5b6bfa3518ce891 Parents: 8141e90 Author: jenkinsAuthored: Thu Sep 7 06:43:58 2017 + Committer: jenkins Committed: Thu Sep 7 06:43:58 2017 + -- content/download.html | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/db1dc035/content/download.html -- diff --git a/content/download.html b/content/download.html index a6c20f4..9ee0797 100644 --- a/content/download.html +++ b/content/download.html @@ -261,7 +261,7 @@ -Struts 2.3.33 +Struts 2.3.34 @@ -271,9 +271,9 @@ Full Distribution: -struts-2.3.33-all.zip (65MB) -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-all.zip.asc;>PGP] -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-all.zip.md5;>MD5] +struts-2.3.34-all.zip (65MB) +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-all.zip.asc;>PGP] +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-all.zip.md5;>MD5] @@ -281,9 +281,9 @@ Example Applications: -struts-2.3.33-apps.zip (35MB) -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-apps.zip.asc;>PGP] -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-apps.zip.md5;>MD5] +struts-2.3.34-apps.zip (35MB) +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-apps.zip.asc;>PGP] +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-apps.zip.md5;>MD5] @@ -291,9 +291,9 @@ Essential Dependencies Only: -struts-2.3.33-min-lib.zip (4MB) -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-min-lib.zip.asc;>PGP] -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-min-lib.zip.md5;>MD5] +struts-2.3.34-min-lib.zip (4MB) +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-min-lib.zip.asc;>PGP] +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-min-lib.zip.md5;>MD5] @@ -301,9 +301,9 @@ All Dependencies: -struts-2.3.33-lib.zip (19MB) -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-lib.zip.asc;>PGP] -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-lib.zip.md5;>MD5] +struts-2.3.34-lib.zip (19MB) +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-lib.zip.asc;>PGP] +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-lib.zip.md5;>MD5] @@ -311,9 +311,9 @@ Documentation: -struts-2.3.33-docs.zip (13MB) -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-docs.zip.asc;>PGP] -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-docs.zip.md5;>MD5] +struts-2.3.34-docs.zip (13MB) +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-docs.zip.asc;>PGP] +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-docs.zip.md5;>MD5] @@ -321,9 +321,9 @@ Source: -struts-2.3.33-src.zip (7MB) -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-src.zip.asc;>PGP] -[http://www.apache.org/dist/struts/2.3.33/struts-2.3.33-src.zip.md5;>MD5] +struts-2.3.34-src.zip (7MB) +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-src.zip.asc;>PGP] +[http://www.apache.org/dist/struts/2.3.34/struts-2.3.34-src.zip.md5;>MD5]
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site a7b087fd7 -> 8141e9034 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/8141e903 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/8141e903 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/8141e903 Branch: refs/heads/asf-site Commit: 8141e9034aa5d2b4a4e446ae8110ac279c983114 Parents: a7b087f Author: jenkinsAuthored: Thu Sep 7 06:35:48 2017 + Committer: jenkins Committed: Thu Sep 7 06:35:48 2017 + -- content/announce.html | 45 - content/index.html| 8 2 files changed, 48 insertions(+), 5 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/8141e903/content/announce.html -- diff --git a/content/announce.html b/content/announce.html index 0158c00..f3832a9 100644 --- a/content/announce.html +++ b/content/announce.html @@ -127,6 +127,7 @@ Announcements + 07 September 2017 - Struts 2.3.34 General Availability 05 September 2017 - Struts 2.5.13 General Availability 09 August 2017 - S2-049 Security Bulletin update 07 July 2017 - Struts 2.3.33 General Availability @@ -143,6 +144,48 @@ Skip to: Announcements - 2016 +07 September 2017 - Struts 2.3.34 General Availability + +The Apache Struts group is pleased to announce that Struts 2.3.34 is available as a âGeneral Availabilityâ +release. The GA designation is our highest quality grade. + +This release addresses two potential security vulnerabilities: + + + S2-050 + A regular expression Denial of Service when using URLValidator (similar to S2-044 S2-047) + S2-051 +A remote attacker may create a DoS attack by sending crafted xml request when using the Struts REST plugin + S2-052 +Possible Remote Code Execution attack when using the Struts REST plugin with XStream handler to handle XML payloads + S2-053 +A possible Remote Code Execution attack when using an unintentional expression in Freemarker tag instead of string literals + + +Also this version resolves the following issues: + + + Struts2 JSON Plugin: Send Map with Strings as Key to JSON Action is ignored, Numeric Keys will work and mapped + Threads get blocked due to unnecessary synchronization in OgnlRuntime Dependency + Upgrade to OGNL 3.0.21 + Upgrade to struts-master 11 + Improve RegEx used to validate URLs + + +Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. +The framework is designed to streamline the full development cycle, from building, to deploying, +to maintaining applications over time. + +All developers are strongly advised to perform this action. + +The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: +Servlet API 2.4, JSP API 2.0, and Java 6. + +Should any issues arise with your use of any version of the Struts framework, please post your comments +to the user list, and, if appropriate, file a tracking ticket. + +You can download this version from our download page. + 05 September 2017 - Struts 2.5.13 General Availability The Apache Struts group is pleased to announce that Struts 2.5.13 is available as a âGeneral Availabilityâ @@ -219,7 +262,7 @@ actions if needed. 07 July 2017 - Struts 2.3.33 General Availability -The Apache Struts group is pleased to announce that Struts 2.3.32 is available as a âGeneral Availabilityâ +The Apache Struts group is pleased to announce that Struts 2.3.33 is available as a âGeneral Availabilityâ release. The GA designation is our highest quality grade. This release addresses two potential security vulnerabilities: http://git-wip-us.apache.org/repos/asf/struts-site/blob/8141e903/content/index.html -- diff --git a/content/index.html b/content/index.html index 80fc198..4d20e7b 100644 --- a/content/index.html +++ b/content/index.html @@ -157,11 +157,11 @@ Version notes -Apache Struts 2.3.33 GA +Apache Struts 2.3.34 GA - It's the latest release of Struts 2.3.x which contains the latest security fix, - read more in Announcement or in - Version notes + It's the latest release of Struts 2.3.x which contains the latest security fixes, + read more in Announcement or in + Version notes
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site b64eab8eb -> 29713114c Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/29713114 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/29713114 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/29713114 Branch: refs/heads/asf-site Commit: 29713114c2cd076deb44bfa1bbf3729cf6003f33 Parents: b64eab8 Author: jenkinsAuthored: Tue Sep 5 13:08:40 2017 + Committer: jenkins Committed: Tue Sep 5 13:08:40 2017 + -- content/announce.html | 65 + content/download.html | 46 content/downloads.html | 2 +- content/index.html | 10 +++ 4 files changed, 94 insertions(+), 29 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/29713114/content/announce.html -- diff --git a/content/announce.html b/content/announce.html index 96c12ac..0158c00 100644 --- a/content/announce.html +++ b/content/announce.html @@ -127,6 +127,7 @@ Announcements + 05 September 2017 - Struts 2.5.13 General Availability 09 August 2017 - S2-049 Security Bulletin update 07 July 2017 - Struts 2.3.33 General Availability 06 July 2017 - Struts 2.5.12 General Availability @@ -142,6 +143,70 @@ Skip to: Announcements - 2016 +05 September 2017 - Struts 2.5.13 General Availability + +The Apache Struts group is pleased to announce that Struts 2.5.13 is available as a âGeneral Availabilityâ +release. The GA designation is our highest quality grade. + +Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. +The framework is designed to streamline the full development cycle, from building, to deploying, +to maintaining applications over time. + +This release contains fixes for the following potential security vulnerabilities: + + + S2-050 + A regular expression Denial of Service when using URLValidator (similar to S2-044 S2-047) + S2-051 +A remote attacker may create a DoS attack by sending crafted xml request when using the Struts REST plugin + S2-052 +Possible Remote Code Execution attack when using the Struts REST plugin with XStream handler to handle XML payloads + + +Except the above this release also contains several improvements just to mention few of them: + + + Struts2 JSON Plugin: Send Map with Strings as Key to JSON Action is ignored, Numeric Keys will work and mapped + NP with TextProvider and wildcardmapping + Threads get blocked due to unnecessary synchronization in OgnlRuntime + Default Multipart validation regex is invalid + Not fully initialized ObjectFactory tries to create beans + http://struts.apache.org/dtds/struts-2.5.dtd missing + Set a global resource bundle in class + Override TextProvider doesnot work in struts 2.5.12 + Array-of-null parameters are converted to string ânullâ + JakartaStreamMultiPartRequest Should Honor âstruts.multipart.maxSizeâ + Build Fails Due to Unused com.sun Import + Struts2.5.12 - NPE in DeligatingValidatorContext + Struts 2 Fails to Initialize with JRebel + Allow define more than one Action suffix + Remove jQuery from debugging interceptor views + update dependencies page on the struts site + Improve RegEx used to validate URLs + Make REST ContentHandlers configurable + expose Freemarker incompatible_improvements into FreemarkerManager and StrutsBeansWrapper + Upgrade Commons Collections to 3.2.2 + Upgrade Commons IO to 2.5 + Upgrade to ASM version 5.2 + Upgrade to OGNL 3.1.15 + Upgrade xstream to the latest version + Upgrade to struts-master 11 + + + + Please read the Version Notes to find more details about performed bug fixes and improvements. + + +All developers are strongly advised to perform this action. + +The 2.5.x series of the Apache Struts framework has a minimum requirement of the following specification versions: +Servlet API 2.4, JSP API 2.0, and Java 7. + +Should any issues arise with your use of any version of the Struts framework, please post your comments +to the user list, and, if appropriate, file a tracking ticket. + +You can download this version from our download page. + 09 August 2017 - S2-049 Security Bulletin update This is an update of the recently announced Security Bulletin - S2-049. http://git-wip-us.apache.org/repos/asf/struts-site/blob/29713114/content/download.html -- diff --git a/content/download.html b/content/download.html index 6a39e13..a6c20f4 100644 --- a/content/download.html +++ b/content/download.html @@ -183,27
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 611400399 -> b64eab8eb Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/b64eab8e Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/b64eab8e Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/b64eab8e Branch: refs/heads/asf-site Commit: b64eab8eb57594c4fd83ea1c015503fafc9f233b Parents: 6114003 Author: jenkinsAuthored: Tue Sep 5 09:32:32 2017 + Committer: jenkins Committed: Tue Sep 5 09:32:32 2017 + -- .../core-developers/parameters-interceptor.html | 14 ++- content/getting-started/http-session.html | 97 +--- 2 files changed, 74 insertions(+), 37 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/b64eab8e/content/core-developers/parameters-interceptor.html -- diff --git a/content/core-developers/parameters-interceptor.html b/content/core-developers/parameters-interceptor.html index 13b5cef..0934dcf 100644 --- a/content/core-developers/parameters-interceptor.html +++ b/content/core-developers/parameters-interceptor.html @@ -125,7 +125,17 @@ << back to Core Developers Guide https://github.com/apache/struts-site/edit/master/source/core-developers/parameters-interceptor.md; title="Edit this page on GitHub">Edit on GitHub -Parameters Interceptor +Parameters Interceptor + + + Parameters + Excluding parameters + Extending the Interceptor + Warning on missing parameters + Examples + + + This interceptor sets all parameters on the value stack. @@ -244,7 +254,7 @@ Error setting expression 'search' with value ['search', ] - [unknown location] Thus is expected behaviour to allow developer to spot missing setter or typo in either parameter name or setter. -###Examples +Examples action name="someAction" class="com.examples.SomeAction" interceptor-ref name="params"/ http://git-wip-us.apache.org/repos/asf/struts-site/blob/b64eab8e/content/getting-started/http-session.html -- diff --git a/content/getting-started/http-session.html b/content/getting-started/http-session.html index 9c4d1ef..f497c2d 100644 --- a/content/getting-started/http-session.html +++ b/content/getting-started/http-session.html @@ -125,19 +125,33 @@ << back to Getting Started https://github.com/apache/struts-site/edit/master/source/getting-started/http-session.md; title="Edit this page on GitHub">Edit on GitHub -HTTP Session +HTTP Session -The example code for this tutorial, http_session, is available at https://github.com/apache/struts-examples;>https://github.com/apache/struts-examples + + Introduction + SessionAware Interface + Using the HTTP Session Object In The Action Class + Accessing HTTP Session Objects In The View + Best Practices When Using SessionAware + Summary + -Introduction +The example code for this tutorial, http_session, is available at [https://github.com/apache/struts-examples]. -Your Struts 2 application may need to access the HTTP session object. Struts 2 provides an interface, https://struts.apache.org/maven/struts2-core/apidocs/org/apache/struts2/interceptor/SessionAware.html;>SessionAware, that your Action class should implement to obtain a reference to the HTTP session object. +Introduction -The http://struts.apache.org/mail.html;>Struts 2 user mailing list is an excellent place to get help. If you are having a problem getting the tutorial example applications to work search the Struts 2 mailing list. If you donât find an answer to your problem, post a question on the mailing list. +Your Struts 2 application may need to access the HTTP session object. Struts 2 provides an interface, +SessionAware, that your Action class +should implement to obtain a reference to the HTTP session object. -SessionAware Interface +The http://struts.apache.org/mail.html;>Struts 2 user mailing list is an excellent place to get help. If you are +having a problem getting the tutorial example applications to work search the Struts 2 mailing list. If you donât find +an answer to your problem, post a question on the mailing list. -The SessionAware interface has one method, setSession, that your Action class will need to override. In the example application (see above), the HelloWorldAction class implements the SessionAware interface and includes this code: +SessionAware Interface + +The SessionAware interface has one method, setSession, that your Action class will need to override. In the example +application (see above), the HelloWorldAction class implements
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site aafccad2a -> 611400399 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/61140039 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/61140039 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/61140039 Branch: refs/heads/asf-site Commit: 611400399416a1342b6beba170a1cdd24a75dcfb Parents: aafccad Author: jenkinsAuthored: Fri Aug 25 12:24:47 2017 + Committer: jenkins Committed: Fri Aug 25 12:24:47 2017 + -- content/announce-2002.html | 1 + content/announce-2003.html | 1 + content/announce-2004.html | 1 + content/announce-2005.html | 1 + content/announce-2006.html | 1 + content/announce-2007.html | 1 + content/announce-2008.html | 1 + content/announce-2009.html | 1 + content/announce-2010.html | 1 + content/announce-2011.html | 1 + content/announce-2012.html | 1 + content/announce-2013.html | 1 + content/announce-2014.html | 1 + content/announce-2015.html | 1 + content/announce-2016.html | 1 + content/announce.html | 1 + content/birdseye.html | 1 + content/builds.html| 1 + content/bylaws.html| 1 + content/coding-standards.html | 1 + content/core-developers/index.html | 3 ++- content/dev-mail.html | 1 + content/download.html | 1 + content/downloads.html | 1 + content/getting-started/index.html | 1 + content/helping.html | 1 + content/kickstart.html | 1 + content/mail.html | 1 + content/plugins/convention/converting.html | 1 + content/plugins/index.html | 1 + content/primer.html| 1 + content/releases.html | 1 + content/security.html | 1 + content/security/index.html| 1 + content/struts1eol-announcement.html | 1 + content/struts1eol-press.html | 1 + content/submitting-patches.html| 1 + content/volunteers.html| 1 + content/youatstruts.html | 1 + 39 files changed, 40 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/61140039/content/announce-2002.html -- diff --git a/content/announce-2002.html b/content/announce-2002.html index 191644e..85aeeca 100644 --- a/content/announce-2002.html +++ b/content/announce-2002.html @@ -123,6 +123,7 @@ +https://github.com/apache/struts-site/edit/master/source/announce-2002.html; title="Edit this page on GitHub">Edit on GitHub Announcements - 2002 and prior 31 Dec 2002 - Struts 1.1 Beta 3 Released http://git-wip-us.apache.org/repos/asf/struts-site/blob/61140039/content/announce-2003.html -- diff --git a/content/announce-2003.html b/content/announce-2003.html index 4e34e8f..9f958ef 100644 --- a/content/announce-2003.html +++ b/content/announce-2003.html @@ -123,6 +123,7 @@ +https://github.com/apache/struts-site/edit/master/source/announce-2003.html; title="Edit this page on GitHub">Edit on GitHub Announcements - 2003 http://git-wip-us.apache.org/repos/asf/struts-site/blob/61140039/content/announce-2004.html -- diff --git a/content/announce-2004.html b/content/announce-2004.html index 0cde338..5947970 100644 --- a/content/announce-2004.html +++ b/content/announce-2004.html @@ -123,6 +123,7 @@ +https://github.com/apache/struts-site/edit/master/source/announce-2004.html; title="Edit this page on GitHub">Edit on GitHub Announcements - 2004 http://git-wip-us.apache.org/repos/asf/struts-site/blob/61140039/content/announce-2005.html -- diff --git a/content/announce-2005.html b/content/announce-2005.html index 5f8c85e..fa718b3 100644 --- a/content/announce-2005.html +++ b/content/announce-2005.html @@ -123,6 +123,7 @@ +https://github.com/apache/struts-site/edit/master/source/announce-2005.html; title="Edit this page on GitHub">Edit on GitHub Announcements - 2005
[3/5] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/freemarker-support.html -- diff --git a/content/core-developers/freemarker-support.html b/content/core-developers/freemarker-support.html index 975d9ff..3247114 100644 --- a/content/core-developers/freemarker-support.html +++ b/content/core-developers/freemarker-support.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/glassfish-2-x.html -- diff --git a/content/core-developers/glassfish-2-x.html b/content/core-developers/glassfish-2-x.html index 9c5d227..66d0a41 100644 --- a/content/core-developers/glassfish-2-x.html +++ b/content/core-developers/glassfish-2-x.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/httpheader-result.html -- diff --git a/content/core-developers/httpheader-result.html b/content/core-developers/httpheader-result.html index e6cba5e..06d753b 100644 --- a/content/core-developers/httpheader-result.html +++ b/content/core-developers/httpheader-result.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/https-and-ie-issues.html -- diff --git a/content/core-developers/https-and-ie-issues.html b/content/core-developers/https-and-ie-issues.html index de18038..dbc0d63 100644 --- a/content/core-developers/https-and-ie-issues.html +++ b/content/core-developers/https-and-ie-issues.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/i18n-interceptor.html -- diff --git a/content/core-developers/i18n-interceptor.html b/content/core-developers/i18n-interceptor.html index 227b15a..a3bd2c9 100644 --- a/content/core-developers/i18n-interceptor.html +++
[2/5] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/restful-action-mapper.html -- diff --git a/content/core-developers/restful-action-mapper.html b/content/core-developers/restful-action-mapper.html index 5c0074b..d03e76c 100644 --- a/content/core-developers/restful-action-mapper.html +++ b/content/core-developers/restful-action-mapper.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/result-annotation.html -- diff --git a/content/core-developers/result-annotation.html b/content/core-developers/result-annotation.html index 0a8e380..2c33a7d 100644 --- a/content/core-developers/result-annotation.html +++ b/content/core-developers/result-annotation.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/result-configuration.html -- diff --git a/content/core-developers/result-configuration.html b/content/core-developers/result-configuration.html index edfca58..0c722a2 100644 --- a/content/core-developers/result-configuration.html +++ b/content/core-developers/result-configuration.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/result-types.html -- diff --git a/content/core-developers/result-types.html b/content/core-developers/result-types.html index ccbfea9..1fcbcf5 100644 --- a/content/core-developers/result-types.html +++ b/content/core-developers/result-types.html @@ -80,17 +80,17 @@ Getting Started Security Guide -Tutorials -FAQs -Guides +Core Developers Guide +Plugins Struts Core API Plugin APIs Tag reference http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry - -Core Developers Guide (WIP) -Plugins (WIP) + +Tutorials - DEPRECATED +FAQs - DEPRECATED +Guides - DEPRECATED http://git-wip-us.apache.org/repos/asf/struts-site/blob/aafccad2/content/core-developers/roles-interceptor.html -- diff --git a/content/core-developers/roles-interceptor.html b/content/core-developers/roles-interceptor.html index c6c817c..6c069ec 100644 --- a/content/core-developers/roles-interceptor.html +++
[5/5] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/aafccad2 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/aafccad2 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/aafccad2 Branch: refs/heads/asf-site Commit: aafccad2af6624508cf9c5497a2b209665a1f987 Parents: f694fc8 Author: jenkinsAuthored: Fri Aug 25 12:22:47 2017 + Committer: jenkins Committed: Fri Aug 25 12:22:47 2017 + -- content/announce-2002.html | 12 ++-- content/announce-2003.html | 12 ++-- content/announce-2004.html | 12 ++-- content/announce-2005.html | 12 ++-- content/announce-2006.html | 12 ++-- content/announce-2007.html | 12 ++-- content/announce-2008.html | 12 ++-- content/announce-2009.html | 12 ++-- content/announce-2010.html | 12 ++-- content/announce-2011.html | 12 ++-- content/announce-2012.html | 12 ++-- content/announce-2013.html | 12 ++-- content/announce-2014.html | 12 ++-- content/announce-2015.html | 12 ++-- content/announce-2016.html | 12 ++-- content/announce.html | 12 ++-- content/birdseye.html | 12 ++-- content/builds.html | 12 ++-- content/bylaws.html | 12 ++-- content/coding-standards.html | 12 ++-- .../accessing-application-session-request-objects.html | 12 ++-- content/core-developers/action-chaining.html| 12 ++-- content/core-developers/action-configuration.html | 12 ++-- content/core-developers/action-event-listener.html | 12 ++-- .../action-mapper-and-action-mapping.html | 12 ++-- content/core-developers/action-mapper.html | 12 ++-- .../action-proxy-and-actionproxy-factory.html | 12 ++-- content/core-developers/after-annotation.html | 12 ++-- .../core-developers/ajax-client-side-validation.html| 12 ++-- content/core-developers/ajax.html | 12 ++-- content/core-developers/alias-interceptor.html | 12 ++-- .../annotation-workflow-interceptor.html| 12 ++-- content/core-developers/annotations.html| 12 ++-- content/core-developers/application-servers.html| 12 ++-- content/core-developers/basic-validation.html | 12 ++-- content/core-developers/bean-configuration.html | 12 ++-- content/core-developers/before-annotation.html | 12 ++-- content/core-developers/before-result-annotation.html | 12 ++-- content/core-developers/chain-result.html | 12 ++-- content/core-developers/chaining-interceptor.html | 12 ++-- content/core-developers/checkbox-interceptor.html | 12 ++-- content/core-developers/client-side-validation.html | 12 ++-- content/core-developers/client-validation.html | 12 ++-- .../core-developers/conditionalvisitor-validator.html | 12 ++-- content/core-developers/configuration-elements.html | 12 ++-- content/core-developers/configuration-files.html| 12 ++-- .../configuration-provider-and-configuration.html | 12 ++-- content/core-developers/constant-configuration.html | 12 ++-- content/core-developers/conversion-annotation.html | 12 ++-- .../conversion-error-field-validator-annotation.html| 12 ++-- .../core-developers/conversion-error-interceptor.html | 12 ++-- content/core-developers/conversion-validator.html | 12 ++-- content/core-developers/cookie-interceptor.html | 12 ++-- .../core-developers/cookie-provider-interceptor.html| 12 ++-- content/core-developers/create-if-null-annotation.html | 12 ++-- content/core-developers/create-session-interceptor.html | 12 ++-- .../core-developers/custom-validator-annotation.html| 12 ++-- .../date-range-field-validator-annotation.html | 12 ++--
[1/6] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 68ba32a9e -> f694fc8f7 http://git-wip-us.apache.org/repos/asf/struts-site/blob/f694fc8f/content/core-developers/validation.html -- diff --git a/content/core-developers/validation.html b/content/core-developers/validation.html index 9be2ef9..55c16f4 100644 --- a/content/core-developers/validation.html +++ b/content/core-developers/validation.html @@ -127,427 +127,498 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/validation.md; title="Edit this page on GitHub">Edit on GitHub Validation -Struts 2 validation is configured via XML or annotations. Manual validation in the action is also possible, and may be combined with XML and annotation-driven validation. +Struts 2 validation is configured via XML or annotations. Manual validation in the action is also possible, and may be +combined with XML and annotation-driven validation. -Validation also depends on both the +Validation also depends on both the validation and workflow interceptors (both are included in the default interceptor +stack). The validation interceptor does the validation itself and creates a list of field-specific errors. +The workflow interceptor checks for the presence of validation errors: if any are found, it returns the âinputâ result +(by default), taking the user back to the form which contained the validation errors. -validation - - -and - -workflow - - -interceptors (both are included in the default interceptor stack). The - -validation - - -interceptor does the validation itself and creates a list of field-specific errors. The - -workflow - - -interceptor checks for the presence of validation errors: if any are found, it returns the âinputâ result (by default), taking the user back to the form which contained the validation errors. - -If weâre using the default settings and our action doesnât have an âinputâ result defined and there are validation (or, incidentally, type conversion) errors, weâll get an error message back telling us thereâs no âinputâ result defined for the action. - -CONTENTS - -Using Annotations - -Annotations can be used as an alternative to XML for validation. +If weâre using the default settings and our action does not have an âinputâ result defined and there are validation +(or, incidentally, type conversion) errors, weâll get an error message back telling us thereâs no âinputâ result defined +for the action. -Â +Using Annotations -Bean Validation +Annotations can be used as an alternative to XML for validation. +Â +## Bean Validation -With struts 2.5 comes the Bean Validation Plugin. That is an alternative to the classic struts validation described here. See the Plugin Page for details. +With struts 2.5 comes the Bean Validation Plugin. That is an alternative to the classic struts validation described here. +See the Plugin Page for details. -Examples +Examples -In all examples given here, the validation message displayed is given in plain English - to internationalize the message, put the string in a properties file and use a property key instead, specified by the âkeyâ attribute. It will be looked up by the framework (see Localization). +In all examples given here, the validation message displayed is given in plain English - to internationalize the message, +put the string in a properties file and use a property key instead, specified by the âkeyâ attribute. It will be looked +up by the framework (see Localization). - -Basic Validation - - -Client-side Validation - - -AJAX Validation - - -Using Field Validators - - -Using Non Field Validators - - -Using Visitor Field Validator - - -How do we repopulate controls when validation fails (FAQ entry) - + Basic Validation + Client-side Validation + AJAX Validation + Using Field Validators + Using Non Field Validators + Using Visitor Field Validator + How do we repopulate controls when validation fails (FAQ entry) -Bundled Validators +Bundled Validators -When using a Field Validator, Field Validator Syntax is ALWAYS preferable than using the Plain Validator Syntax as it facilitates grouping of field-validators according to fields. This is very handy especially if a field needs to have many field-validators which is almost always the case. - - - - - - - +When using a Field Validator, Field Validator Syntax is ALWAYS preferable than using the Plain Validator Syntax +as it facilitates grouping of field-validators according to fields. This is very handy especially if a field needs +to have many field-validators which is almost always the case. - -conversion validator - - -date validator - - -double validator - - -email validator - -
[5/6] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/f694fc8f/content/core-developers/interceptors.html -- diff --git a/content/core-developers/interceptors.html b/content/core-developers/interceptors.html index 5cf3a14..4fcb55b 100644 --- a/content/core-developers/interceptors.html +++ b/content/core-developers/interceptors.html @@ -223,7 +223,403 @@ than reiterate the same list of Interceptors, we can bundle these Interceptors t The Default Configuration -500: Internal Server Error +?xml version="1.0" encoding="UTF-8" ? +!-- +/* + * $Id$ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +-- + +!-- +When declaring beans in this file you must either use name="struts" or don't name the bean at all. + +The name="struts" must be used when alias was defined in {@link org.apache.struts2.config.DefaultBeanSelectionProvider} - +it is then the default bean's name and {@link org.apache.struts2.config.DefaultBeanSelectionProvider} links name "struts" +with "default" (aliasing it) + +If name won't be defined then the "default" value will be used {@link com.opensymphony.xwork2.inject.Container#DEFAULT_NAME} +and {@link com.opensymphony.xwork2.inject.Inject} +-- +!DOCTYPE struts PUBLIC +"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" +"http://struts.apache.org/dtds/struts-2.5.dtd"; + +struts + +constant name="struts.excludedClasses" + value=" +java.lang.Object, +java.lang.Runtime, +java.lang.System, +java.lang.Class, +java.lang.ClassLoader, +java.lang.Shutdown, +java.lang.ProcessBuilder, +ognl.OgnlContext, +ognl.ClassResolver, +ognl.TypeConverter, +ognl.MemberAccess, +ognl.DefaultMemberAccess, +com.opensymphony.xwork2.ognl.SecurityMemberAccess, +com.opensymphony.xwork2.ActionContext" / + +!-- this must be valid regex, each '.' in package name must be escaped! -- +!-- it's more flexible but slower than simple string comparison -- +!-- constant name="struts.excludedPackageNamePatterns" value="^java\.lang\..*,^ognl.*,^(?!javax\.servlet\..+)(javax\..+)" / -- + +!-- this is simpler version of the above used with string comparison -- +constant name="struts.excludedPackageNames" + value=" +java.lang., +ognl., +javax, +freemarker.core., +freemarker.template., +freemarker.ext.rhino., +freemarker.ext.beans., +sun.reflect., +javassist." / + +bean class="com.opensymphony.xwork2.ObjectFactory" name="struts"/ +bean type="com.opensymphony.xwork2.factory.ResultFactory" name="struts" class="org.apache.struts2.factory.StrutsResultFactory" / +bean type="com.opensymphony.xwork2.factory.ActionFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultActionFactory" / +bean type="com.opensymphony.xwork2.factory.ConverterFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultConverterFactory" / +bean type="com.opensymphony.xwork2.factory.InterceptorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultInterceptorFactory" / +bean type="com.opensymphony.xwork2.factory.ValidatorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultValidatorFactory" / +bean type="com.opensymphony.xwork2.factory.UnknownHandlerFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultUnknownHandlerFactory" / + +bean type="com.opensymphony.xwork2.FileManager" class="com.opensymphony.xwork2.util.fs.DefaultFileManager" name="system" scope="singleton"/ +bean type="com.opensymphony.xwork2.FileManagerFactory" class="com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory" name="struts" scope="singleton"/ + +bean type="com.opensymphony.xwork2.ActionProxyFactory" name="struts" class="org.apache.struts2.factory.StrutsActionProxyFactory"/ +bean
[6/6] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/f694fc8f Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/f694fc8f Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/f694fc8f Branch: refs/heads/asf-site Commit: f694fc8f7c17f4ff2864319dd71699a1b6eddb01 Parents: 68ba32a Author: jenkinsAuthored: Fri Aug 25 12:18:44 2017 + Committer: jenkins Committed: Fri Aug 25 12:18:44 2017 + -- ...ing-application-session-request-objects.html | 119 +-- content/core-developers/action-chaining.html| 87 ++- .../core-developers/action-event-listener.html | 42 +- .../action-mapper-and-action-mapping.html | 45 +- .../action-proxy-and-actionproxy-factory.html | 102 ++- content/core-developers/default-properties.html | 225 +- .../core-developers/dispatcher-listener.html| 36 +- .../formatting-dates-and-numbers.html | 86 +-- content/core-developers/index.html | 4 +- content/core-developers/interceptors.html | 398 +- content/core-developers/localization.html | 311 ++-- content/core-developers/logging.html| 136 ++-- .../model-driven-interceptor.html | 143 +--- .../core-developers/parameters-interceptor.html | 281 +++ .../core-developers/pre-result-listener.html| 76 +- content/core-developers/result-types.html | 115 ++- content/core-developers/static-content.html | 105 +-- content/core-developers/struts-default-xml.html | 470 ++-- content/core-developers/type-conversion.html| 677 +++-- content/core-developers/validation.html | 729 ++- .../core-developers/writing-interceptors.html | 112 ++- 21 files changed, 2329 insertions(+), 1970 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/f694fc8f/content/core-developers/accessing-application-session-request-objects.html -- diff --git a/content/core-developers/accessing-application-session-request-objects.html b/content/core-developers/accessing-application-session-request-objects.html index 28d2209..dda22a7 100644 --- a/content/core-developers/accessing-application-session-request-objects.html +++ b/content/core-developers/accessing-application-session-request-objects.html @@ -131,133 +131,58 @@ The framework provides several access helpers to access Session, Application, Request scopes. -Accessing from Java +Accessing from Java -All the JEE scope attribute maps can be accessed via - -ActionContext - - -. +All the JEE scope attribute maps can be accessed via ActionContext. Accessing servlet scopes - -Map attr = (Map) ActionContext.getContext().get("attr"); -attr.put("myId",myProp); - -Map application = (Map) ActionContext.getContext().get("application"); -application.put("myId",myProp); +Map attr = (Map) ActionContext.getContext().get("attr"); +attr.put("myId",myProp); -Map session = (Map) ActionContext.getContext().get("session"); -session.put("myId", myProp); +Map application = (Map) ActionContext.getContext().get("application"); +application.put("myId",myProp); -Map request = (Map) ActionContext.getContext().get("request"); -request.put("myId",myProp); +Map session = (Map) ActionContext.getContext().get("session"); +session.put("myId", myProp); +Map request = (Map) ActionContext.getContext().get("request"); +request.put("myId",myProp); - - - - - - - - - Do not use ActionContext.getContext() in the constructor of your Action class. The values may not be set up, and the call may return null for getSession(). - - - - + Do not use ActionContext.getContext() in the constructor of your Action class. The values may not be set up, and +the call may return null for getSession(). -We can also access the - -HttpServletRequest - - -and - -HttpServletResponse - - -objects themselves through - -ServletActionContext - - -. In general this isnât recommended as it will tie our action to the servlet specification. +We can also access the HttpServletRequest and HttpServletResponse objects themselves through ServletActionContext. +In general this isnât recommended as it will tie our action to the servlet specification. Setting session attribute through session object - -ServletActionContext.getRequest().getSession().put("myId", myProp); - +ServletActionContext.getRequest().getSession().put("myId", myProp); -Implementing +Implementing ServletRequestAware or ServletResponseAware, combined with the servletConfig interceptor, +is an alternative way to access the request and response objects, with the same caveat. -ServletRequestAware - - -or -
[3/6] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/f694fc8f/content/core-developers/struts-default-xml.html -- diff --git a/content/core-developers/struts-default-xml.html b/content/core-developers/struts-default-xml.html index 15f0950..30ad6c1 100644 --- a/content/core-developers/struts-default-xml.html +++ b/content/core-developers/struts-default-xml.html @@ -138,89 +138,403 @@ setting in struts.properties. The content of struts-default.xml is here: -!DOCTYPE html +?xml version="1.0" encoding="UTF-8" ? !-- +/* + * $Id$ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +-- -Hello future GitHubber! I bet you're here to remove those nasty inline styles, -DRY up these templates and make 'em nice and re-usable, right? +!-- +When declaring beans in this file you must either use name="struts" or don't name the bean at all. -Please, don't. https://github.com/styleguide/templates/2.0 +The name="struts" must be used when alias was defined in {@link org.apache.struts2.config.DefaultBeanSelectionProvider} - +it is then the default bean's name and {@link org.apache.struts2.config.DefaultBeanSelectionProvider} links name "struts" +with "default" (aliasing it) +If name won't be defined then the "default" value will be used {@link com.opensymphony.xwork2.inject.Container#DEFAULT_NAME} +and {@link com.opensymphony.xwork2.inject.Inject} -- -html - head -meta http-equiv="Content-type" content="text/html; charset=utf-8" -titleUnicorn! middot; GitHub/title -style type="text/css" media="screen" - body { -background-color: #f1f1f1; -margin: 0; -font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - } - - .container { margin: 50px auto 40px auto; width: 600px; text-align: center; } - - a { color: #4183c4; text-decoration: none; } - a:hover { text-decoration: underline; } - - h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; } - p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;} - - ul { list-style: none; margin: 25px 0; padding: 0; } - li { display: table-cell; font-weight: bold; width: 1%; } - - .logo { display: inline-block; margin-top: 35px; } - .logo-img-2x { display: none; } - @media - only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and ( min--moz-device-pixel-ratio: 2), - only screen and ( -o-min-device-pixel-ratio: 2/1), - only screen and (min-device-pixel-ratio: 2), - only screen and (min-resolution: 192dpi), - only screen and (min-resolution: 2dppx) { -.logo-img-1x { display: none; } -.logo-img-2x { display: inline-block; } - } - - #suggestions { -margin-top: 35px; -color: #ccc; - } - #suggestions a { -color: #66; -font-weight: 200; -font-size: 14px; -margin: 0 10px; - } - -/style - /head - body - -div class="container" - p -img width="200" src="data:image/png;base64,
[2/6] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/f694fc8f/content/core-developers/type-conversion.html -- diff --git a/content/core-developers/type-conversion.html b/content/core-developers/type-conversion.html index 9e096bc..7958c41 100644 --- a/content/core-developers/type-conversion.html +++ b/content/core-developers/type-conversion.html @@ -127,560 +127,441 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/type-conversion.md; title="Edit this page on GitHub">Edit on GitHub Type Conversion -Routine type conversion in the framework is transparent. Generally, all you need to do is ensure that HTML inputs have names that can be used in OGNL expressions. (HTML inputs are form elements and other GET/POST parameters.) +Routine type conversion in the framework is transparent. Generally, all you need to do is ensure that HTML inputs have +names that can be used in OGNL expressions. (HTML inputs are form elements and other GET/POST parameters.) -Built in Type Conversion Support +Built in Type Conversion Support -Type Conversion is implemented by XWork. - -{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter} - - +Type Conversion is implemented by XWork. XWork will automatically handle the most common type conversion for you. +This includes support for converting to and from Strings for each of the following: - -Enumerations - - -BigDecimal and BigInteger - + String + boolean / Boolean + char / Character + int / Integer, float / Float, long / Long, double / Double + dates - uses the SHORT format for the Locale associated with the current request + arrays - assuming the individual strings can be coverted to the individual items + collections - if not object type can be determined, it is assumed to be a String and a new ArrayList is created + Note that with arrays the type conversion will defer to the type of the array elements and try to convert each item + individually. As with any other type conversion, if the conversion canât be performed the standard type conversion + error reporting is used to indicate a problem occurred while processing the type conversion. + Enumerations + BigDecimal and BigInteger -Relationship to Parameter Names +Relationship to Parameter Names -There is no need to capture form values using intermediate Strings and primitives. Instead, the framework can read from and write to properties of objects addressed via OGNL expressions and perform the appropriate type conversion for you. +There is no need to capture form values using intermediate Strings and primitives. Instead, the framework can read from +and write to properties of objects addressed via OGNL expressions and perform the appropriate type conversion for you. Here are some tips for leveraging the frameworkâs type conversion capabilities: - -Use OGNL expressions - the framework will automatically take care of creating the actual objects for you. - - -Use JavaBeans! The framework can only create objects that obey the JavaBean specification, provide no-arg constructions and include getters and setters where appropriate. - - -Remember that person.name will call getPerson().setName(). If the framework creates the Person object for you, it remember that a - - - -setPerson - - -method must also exist. - - - -The framework will not instantiate an object if an instance already exists. The PrepareInterceptor or actionâs constructor can be used to create target objects before type conversion. - - -For lists and maps, use index notation, such as people[0].name or friends[âpatrickâ].name . Often these HTML form elements are being rendered inside a loop. For JSP Tags , use the iterator tagâs status attribute. For FreeMarker Tags , use the special property ${foo_index}[]. - - -For multiple select boxes, it isnât possible to use index notation to name each individual item. Instead, name your element people.name and the framework will understand that it should create a new Person object for each selected item and set its name accordingly. - + Use OGNL expressions - the framework will automatically take care of creating the actual objects for you. + Use JavaBeans - The framework can only create objects that obey the JavaBean specification, provide no-arg constructions +and include getters and setters where appropriate. + Remember that person.name will call getPerson().setName(). If the framework creates the Person object for you, + it remember that a setPerson method must also exist. + The framework will not instantiate an object if an instance already exists. The PrepareInterceptor or actionâs +constructor can be used to create target objects before type conversion. + For lists and maps, use index notation,
[4/6] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/f694fc8f/content/core-developers/logging.html -- diff --git a/content/core-developers/logging.html b/content/core-developers/logging.html index d06ffdf..dcc17c0 100644 --- a/content/core-developers/logging.html +++ b/content/core-developers/logging.html @@ -127,117 +127,115 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/logging.md; title="Edit this page on GitHub">Edit on GitHub Logging -#Logging support# +Logging support + + + As from Struts 2.5 version, the logging layer is deprecated and Struts uses Log4j2 +The logging layer will be dropped with the next major release. + XWork provides its own layer to support logging - it allows to use many different implementations. Currently XWork provides support for the following libraries (in that order base on classpath discovery): - -Commons Logging - - -http://www\.slf4j\.org/;>SLF4J^[http://www.slf4j.org/] - - -http://logging\.apache\.org/log4j/2\.x/;>Log4j2^[http://logging.apache.org/log4j/2.x/] - - -JDK Logger - + Commons Logging + http://www.slf4j.org/;>SLF4J + http://logging.apache.org/log4j/2.x/;>Log4j2 + JDK Logger -Usage +Usage -To use given type of library add it as a Maven dependency or drop into WEB-INF/lib folder. XWork LoggerFactory class will use given logging provider if available. +To use given type of library add it as a Maven dependency or drop into WEB-INF/lib folder. XWork LoggerFactory class will +use given logging provider if available. To add logging to your application simply declare a Logger as follow: -import com.opensymphony.xwork2.util.logging.Logger; -import com.opensymphony.xwork2.util.logging.LoggerFactory; - -public class MyAction { +import com.opensymphony.xwork2.util.logging.Logger; +import com.opensymphony.xwork2.util.logging.LoggerFactory; -private static final Logger LOG = LoggerFactory.getLogger(MyAction.class); +public class MyAction { -private String userName; +private static final Logger LOG = LoggerFactory.getLogger(MyAction.class); -public String execute() { -LOG.debug("MyAction executed with UserName [#0]", userName); -return "success"; -} +private String userName; -// getter / setter +public String execute() { +LOG.debug("MyAction executed with UserName [#0]", userName); +return "success"; +} -} +// getter / setter +} -Implementing my own factory +Implementing my own factory -You plug in your own logging solution, simple extend LoggerFactory class and provide a delegate which implements Logger interface, like below: +You plug in your own logging solution, simple extend LoggerFactory class and provide a delegate which implements Logger +interface, like below: JdkLoggerFactory which adds support for JDK logging -import com.opensymphony.xwork2.util.logging.Logger; -import com.opensymphony.xwork2.util.logging.LoggerFactory; +import com.opensymphony.xwork2.util.logging.Logger; +import com.opensymphony.xwork2.util.logging.LoggerFactory; -/** +/** * Creates jdk loggers - */ -public class JdkLoggerFactory extends LoggerFactory { + */ +public class JdkLoggerFactory extends LoggerFactory { -@Override -protected Logger getLoggerImpl(Class? cls) { -return new JdkLogger(java.util.logging.Logger.getLogger(cls.getName())); -} +@Override +protected Logger getLoggerImpl(Class? cls) { +return new JdkLogger(java.util.logging.Logger.getLogger(cls.getName())); +} -@Override -protected Logger getLoggerImpl(String name) { -return new JdkLogger(java.util.logging.Logger.getLogger(name)); -} -} - +@Override +protected Logger getLoggerImpl(String name) { +return new JdkLogger(java.util.logging.Logger.getLogger(name)); +} +} JdkLogger is a wrapper around java.util.logging.Logger and implements Logger interface -import com.opensymphony.xwork2.util.logging.Logger; -import com.opensymphony.xwork2.util.logging.LoggerUtils; +~~~ +import com.opensymphony.xwork2.util.logging.Logger; +import com.opensymphony.xwork2.util.logging.LoggerUtils; -import java.util.logging.Level; +import java.util.logging.Level; -/** +/** * Delegates to jdk logger. Maps fatal to Level.SEVERE along with error. - */ -public class JdkLogger implements Logger { + */ +public class JdkLogger implements Logger { -private java.util.logging.Logger log; +private java.util.logging.Logger log; -public JdkLogger(java.util.logging.Logger log) { -this.log = log; -} +public JdkLogger(java.util.logging.Logger log) { +this.log = log; +} -public void error(String msg, String... args) { -log.log(Level.SEVERE, LoggerUtils.format(msg, args)); -} +public void error(String
[3/3] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/68ba32a9 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/68ba32a9 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/68ba32a9 Branch: refs/heads/asf-site Commit: 68ba32a9e22191eac851b062e661f55013d6cb40 Parents: 732b46f Author: jenkinsAuthored: Wed Aug 23 12:09:27 2017 + Committer: jenkins Committed: Wed Aug 23 12:09:27 2017 + -- content/core-developers/default-properties.html | 84 +-- content/core-developers/interceptors.html | 102 +-- content/core-developers/struts-default-xml.html | 87 ++-- 3 files changed, 82 insertions(+), 191 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/68ba32a9/content/core-developers/default-properties.html -- diff --git a/content/core-developers/default-properties.html b/content/core-developers/default-properties.html index c93b890..93c972d 100644 --- a/content/core-developers/default-properties.html +++ b/content/core-developers/default-properties.html @@ -139,89 +139,7 @@ on the classpath, but it is typically found under !DOCTYPE html -!-- - -Hello future GitHubber! I bet you're here to remove those nasty inline styles, -DRY up these templates and make 'em nice and re-usable, right? - -Please, don't. https://github.com/styleguide/templates/2.0 - --- -html - head -meta http-equiv="Content-type" content="text/html; charset=utf-8" -titleUnicorn! middot; GitHub/title -style type="text/css" media="screen" - body { -background-color: #f1f1f1; -margin: 0; -font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - } - - .container { margin: 50px auto 40px auto; width: 600px; text-align: center; } - - a { color: #4183c4; text-decoration: none; } - a:hover { text-decoration: underline; } - - h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; } - p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;} - - ul { list-style: none; margin: 25px 0; padding: 0; } - li { display: table-cell; font-weight: bold; width: 1%; } - - .logo { display: inline-block; margin-top: 35px; } - .logo-img-2x { display: none; } - @media - only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and ( min--moz-device-pixel-ratio: 2), - only screen and ( -o-min-device-pixel-ratio: 2/1), - only screen and (min-device-pixel-ratio: 2), - only screen and (min-resolution: 192dpi), - only screen and (min-resolution: 2dppx) { -.logo-img-1x { display: none; } -.logo-img-2x { display: inline-block; } - } - - #suggestions { -margin-top: 35px; -color: #ccc; - } - #suggestions a { -color: #66; -font-weight: 200; -font-size: 14px; -margin: 0 10px; - } - -/style - /head - body - -div class="container" - p -img width="200" src="data:image/png;base64, -iVBORw0KGgoNSUhEUgAAAZGZCAMAAACQbpc2AAADAFBMVEWEBz6FAD6FAD6GAD+MAEGOAEOKAEGOAEOGAD+IAECOAEOOAUOOAEOOAEOOAEOOAEOOAEOOAEOCACyOAEQAAACKAEJpoJ2KADqu0eSKAD2BAD+KAD6AxCNqwoX1Ziawo9LYnGuwhL7aiwaIyYudst6DlrnhcWvCcVvlbE9PvsL2u3uYmdCZum9Rns7clUYsreOYp2nuj37kiZLUfqhvxafqfmrNWEjA22uz1Vu6lsiRAArWhLfgdoONnF36rWrzpz/ajy/LbqR8pdWDVXx8faN6m0+6hE3+1pmHP2mTy1b4k1p/ueFlj7vMfzyBs1v/2GfLpFL5rQD+7teQABj4n0/rpCz6r1Z8apP+4rrfw1iV0JyLUkqQACTDnah5AACtaEt9zcGNhleJbU5lsOFRvE5FuOPS4WLSt7+8ajvXcJpcyNvhztSwUkTGgZz9uDSxRnPZwsnTkqy7jpsPt/AxyvnAeJMAxPnMiqPJYIyzf4/KqrPedaK5bIsQwfTo2t72hUepPWvn6mO8VoXrgbDRaJXle6r75FzZm7S2TnyTNUXv5eiDAA6j0WmKyWv51liRAACjP0OZNVuwa4L+uQAcw/SiNGH57mIxxPKmU3DgpL2sX3rutc3/vh9gu1D3tNEAtvOSKVAmxfagRmbnrcWZJVaTJET2qsv84eyk04PzcEb71OX0u9OUzHD1nsR+1PhtwFUBvfQ5x/RizvdQy/VZzPWaz3b8uST+wFWDABqKAC6m03uGx2X+xGKBxmL2iWDQjb777/Nt0Pf+xmlCyPT+v032hVv+yXD3lGx2wlr99/hJyvX1gFV20vf1e1DCaqr6xdz+wlzJe7T2jmWFACT3i7v+0IP9u0R8xF7Oh7r+zHn/+WLHc7CQGUP3vtePEUT0i7qHADORIUyEAC2BAACf0Hr3j73zhLX7x96RGkrMgbePFEiRD
[1/3] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 732b46ff4 -> 68ba32a9e http://git-wip-us.apache.org/repos/asf/struts-site/blob/68ba32a9/content/core-developers/struts-default-xml.html -- diff --git a/content/core-developers/struts-default-xml.html b/content/core-developers/struts-default-xml.html index 84ce408..15f0950 100644 --- a/content/core-developers/struts-default-xml.html +++ b/content/core-developers/struts-default-xml.html @@ -138,20 +138,87 @@ setting in struts.properties. The content of struts-default.xml is here: -?xml version="1.0" encoding="utf-8"? -!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; +!DOCTYPE html +!-- + +Hello future GitHubber! I bet you're here to remove those nasty inline styles, +DRY up these templates and make 'em nice and re-usable, right? + +Please, don't. https://github.com/styleguide/templates/2.0 + +-- html head -title503 first byte timeout/title +meta http-equiv="Content-type" content="text/html; charset=utf-8" +titleUnicorn! middot; GitHub/title +style type="text/css" media="screen" + body { +background-color: #f1f1f1; +margin: 0; +font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + } + + .container { margin: 50px auto 40px auto; width: 600px; text-align: center; } + + a { color: #4183c4; text-decoration: none; } + a:hover { text-decoration: underline; } + + h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; } + p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;} + + ul { list-style: none; margin: 25px 0; padding: 0; } + li { display: table-cell; font-weight: bold; width: 1%; } + + .logo { display: inline-block; margin-top: 35px; } + .logo-img-2x { display: none; } + @media + only screen and (-webkit-min-device-pixel-ratio: 2), + only screen and ( min--moz-device-pixel-ratio: 2), + only screen and ( -o-min-device-pixel-ratio: 2/1), + only screen and (min-device-pixel-ratio: 2), + only screen and (min-resolution: 192dpi), + only screen and (min-resolution: 2dppx) { +.logo-img-1x { display: none; } +.logo-img-2x { display: inline-block; } + } + + #suggestions { +margin-top: 35px; +color: #ccc; + } + #suggestions a { +color: #66; +font-weight: 200; +font-size: 14px; +margin: 0 10px; + } + +/style /head body -h1Error 503 first byte timeout/h1 -pfirst byte timeout/p -h3Guru Mediation:/h3 -pDetails: cache-sea1035-SEA 1503489851 3487996858/p -hr -pVarnish cache server/p + +div class="container" + p +img width="200" src="data:image/png;base64, +iVBORw0KGgoNSUhEUgAAAZGZCAMAAACQbpc2AAADAFBMVEWEBz6FAD6FAD6GAD+MAEGOAEOKAEGOAEOGAD+IAECOAEOOAUOOAEOOAEOOAEOOAEOOAEOOAEOCACyOAEQAAACKAEJpoJ2KADqu0eSKAD2BAD+KAD6AxCNqwoX1Ziawo9LYnGuwhL7aiwaIyYudst6DlrnhcWvCcVvlbE9PvsL2u3uYmdCZum9Rns7clUYsreOYp2nuj37kiZLUfqhvxafqfmrNWEjA22uz1Vu6lsiRAArWhLfgdoONnF36rWrzpz/ajy/LbqR8pdWDVXx8faN6m0+6hE3+1pmHP2mTy1b4k1p/ueFlj7vMfzyBs1v/2GfLpFL5rQD+7teQABj4n0/rpCz6r1Z8apP+4rrfw1iV0JyLUkqQACTDnah5AACtaEt9zcGNhleJbU5lsOFRvE5FuOPS4WLSt7+8ajvXcJpcyNvhztSwUkTGgZz9uDSxRnPZwsnTkqy7jpsPt/AxyvnAeJMAxPnMiqPJYIyzf4/KqrPedaK5bIsQwfTo2t72hUepPWvn6mO8VoXrgbDRaJXle6r75FzZm7S2TnyTNUXv5eiDAA6j0WmKyWv51liRAACjP0OZNVuwa4L+uQAcw/SiNGH57mIxxPKmU3DgpL2sX3rutc3/vh9gu1D3tNEAtvOSKVAmxfagRmbnrcWZJVaTJET2qsv84eyk04PzcEb71OX0u9OUzHD1nsR+1PhtwFUBvfQ5x/RizvdQy/VZzPWaz3b8uST+wFWDABqKAC6m03uGx2X+xGKBxmL2iWDQjb777/Nt0Pf+xmlCyPT+v032hVv+yXD3lGx2wlr99/hJyvX1gFV20vf1e1DCaqr6xdz+wlzJe7T2jmWFACT3i7v+0IP9u0R8xF7Oh7r+zHn/+WLHc7CQGUP3vtePEUT0i7qHADORIUyEAC2BAACf0Hr3j73zhLX
[2/3] struts-site git commit: Updates production by Jenkins
http://git-wip-us.apache.org/repos/asf/struts-site/blob/68ba32a9/content/core-developers/interceptors.html -- diff --git a/content/core-developers/interceptors.html b/content/core-developers/interceptors.html index ee04394..5cf3a14 100644 --- a/content/core-developers/interceptors.html +++ b/content/core-developers/interceptors.html @@ -163,21 +163,9 @@ is pluggable, so you can decide exactly which features an Action needs to suppor the Interceptors bundled with the framework. Interceptors âset the stageâ for the Action classes, doing much of the âheavy liftingâ before the Action executes. - - - - Action Lifecyle - - - - - - - - Â - - - +Action Lifecyle + + In some cases, an Interceptor might keep an Action from firing, because of a double-submit or because validation failed. Interceptors can also change the state of an Action before it executes. @@ -235,89 +223,7 @@ than reiterate the same list of Interceptors, we can bundle these Interceptors t The Default Configuration -!DOCTYPE html -!-- - -Hello future GitHubber! I bet you're here to remove those nasty inline styles, -DRY up these templates and make 'em nice and re-usable, right? - -Please, don't. https://github.com/styleguide/templates/2.0 - --- -html - head -meta http-equiv="Content-type" content="text/html; charset=utf-8" -titleUnicorn! middot; GitHub/title -style type="text/css" media="screen" - body { -background-color: #f1f1f1; -margin: 0; -font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - } - - .container { margin: 50px auto 40px auto; width: 600px; text-align: center; } - - a { color: #4183c4; text-decoration: none; } - a:hover { text-decoration: underline; } - - h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; } - p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;} - - ul { list-style: none; margin: 25px 0; padding: 0; } - li { display: table-cell; font-weight: bold; width: 1%; } - - .logo { display: inline-block; margin-top: 35px; } - .logo-img-2x { display: none; } - @media - only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and ( min--moz-device-pixel-ratio: 2), - only screen and ( -o-min-device-pixel-ratio: 2/1), - only screen and (min-device-pixel-ratio: 2), - only screen and (min-resolution: 192dpi), - only screen and (min-resolution: 2dppx) { -.logo-img-1x { display: none; } -.logo-img-2x { display: inline-block; } - } - - #suggestions { -margin-top: 35px; -color: #ccc; - } - #suggestions a { -color: #66; -font-weight: 200; -font-size: 14px; -margin: 0 10px; - } - -/style - /head - body - -div class="container" - p -img width="200" src="data:image/png;base64, -iVBORw0KGgoNSUhEUgAAAZGZCAMAAACQbpc2AAADAFBMVEWEBz6FAD6FAD6GAD+MAEGOAEOKAEGOAEOGAD+IAECOAEOOAUOOAEOOAEOOAEOOAEOOAEOOAEOCACyOAEQAAACKAEJpoJ2KADqu0eSKAD2BAD+KAD6AxCNqwoX1Ziawo9LYnGuwhL7aiwaIyYudst6DlrnhcWvCcVvlbE9PvsL2u3uYmdCZum9Rns7clUYsreOYp2nuj37kiZLUfqhvxafqfmrNWEjA22uz1Vu6lsiRAArWhLfgdoONnF36rWrzpz/ajy/LbqR8pdWDVXx8faN6m0+6hE3+1pmHP2mTy1b4k1p/ueFlj7vMfzyBs1v/2GfLpFL5rQD+7teQABj4n0/rpCz6r1Z8apP+4rrfw1iV0JyLUkqQACTDnah5AACtaEt9zcGNhleJbU5lsOFRvE5FuOPS4WLSt7+8ajvXcJpcyNvhztSwUkTGgZz9uDSxRnPZwsnTkqy7jpsPt/AxyvnAeJMAxPnMiqPJYIyzf4/KqrPedaK5bIsQwfTo2t72hUepPWvn6mO8VoXrgbDRaJXle6r75FzZm7S2TnyTNUXv5eiDAA6j0WmKyWv51liRAACjP0OZNVuwa4L+uQAcw/SiNGH57mIxxPKmU3DgpL2sX3rutc3/vh9gu1D3tNEAtvOSKVAmxfagRmbnrcWZJVaTJET2qsv84eyk04PzcEb71OX0u9OUzHD1nsR+1PhtwFUBvfQ5x/RizvdQy/VZzPWaz3b8uST+wFWDABqKAC6m03uGx2X+xGKBxmL2iWDQjb777/Nt0Pf+xmlCyPT+v032hVv+yXD3lGx2wlr99/hJyvX1gFV20vf1e1DCaqr6xdz+wlzJe7T2jmWFACT3i7v+0IP9u0R8xF7Oh7r+zHn/+WLHc7CQGUP3vtePEUT0i7qHADORIUyEAC2BAACf0Hr3j73zhLX
[3/3] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/732b46ff Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/732b46ff Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/732b46ff Branch: refs/heads/asf-site Commit: 732b46ff46078c227813438ccf6da42a118bd955 Parents: 9476ddf Author: jenkinsAuthored: Wed Aug 23 12:04:14 2017 + Committer: jenkins Committed: Wed Aug 23 12:04:14 2017 + -- content/core-developers/default-properties.html | 307 +++ content/core-developers/interceptors.html | 506 +++ content/core-developers/struts-default-xml.html | 413 +-- 3 files changed, 383 insertions(+), 843 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/732b46ff/content/core-developers/default-properties.html -- diff --git a/content/core-developers/default-properties.html b/content/core-developers/default-properties.html index ad14a3c..c93b890 100644 --- a/content/core-developers/default-properties.html +++ b/content/core-developers/default-properties.html @@ -139,230 +139,89 @@ on the classpath, but it is typically found under # -# $Id$ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -### START SNIPPET: complete_file - -### Struts default properties -###(can be overridden by a struts.properties file in the root of the classpath) -### - -### This can be used to set your default locale and encoding scheme -# struts.locale=en_US -struts.i18n.encoding=UTF-8 - -### if specified, the default object factory can be overridden here -### Note: short-hand notation is supported in some cases, such as "spring" -### Alternatively, you can provide a com.opensymphony.xwork2.ObjectFactory subclass name here -# struts.objectFactory = spring - -### specifies the autoWiring logic when using the SpringObjectFactory. -### valid values are: name, type, auto, and constructor (name is the default) -struts.objectFactory.spring.autoWire = name - -### indicates to the struts-spring integration if Class instances should be cached -### this should, until a future Spring release makes it possible, be left as true -### unless you know exactly what you are doing! -### valid values are: true, false (true is the default) -struts.objectFactory.spring.useClassCache = true - -### ensures the autowire strategy is always respected. -### valid values are: true, false (false is the default) -struts.objectFactory.spring.autoWire.alwaysRespect = false - -### By default SpringObjectFactory doesn't support AOP -### This flag was added just temporally to check if nothing is broken -### See https://issues.apache.org/jira/browse/WW-4110 -struts.objectFactory.spring.enableAopSupport = false - -### if specified, the default object type determiner can be overridden here -### Note: short-hand notation is supported in some cases, such as "tiger" or "notiger" -### Alternatively, you can provide a com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation name here -### Note: By default, com.opensymphony.xwork2.util.DefaultObjectTypeDeterminer is used which handles type detection -### using generics. com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer was deprecated since XWork 2, it's -### functions are integrated in DefaultObjectTypeDeterminer now. -### To disable tiger support use the "notiger" property value here. -#struts.objectTypeDeterminer = tiger -#struts.objectTypeDeterminer = notiger - -### Parser to handle HTTP POST requests, encoded using the MIME-type multipart/form-data -# struts.multipart.parser=cos -# struts.multipart.parser=pell -# struts.multipart.parser=jakarta-stream -struts.multipart.parser=jakarta -# uses javax.servlet.context.tempdir by default -struts.multipart.saveDir= -struts.multipart.maxSize=2097152 - -### Load custom property files (does not override struts.properties!) -#
[1/3] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 9476ddfa1 -> 732b46ff4 http://git-wip-us.apache.org/repos/asf/struts-site/blob/732b46ff/content/core-developers/struts-default-xml.html -- diff --git a/content/core-developers/struts-default-xml.html b/content/core-developers/struts-default-xml.html index 30ad6c1..84ce408 100644 --- a/content/core-developers/struts-default-xml.html +++ b/content/core-developers/struts-default-xml.html @@ -138,403 +138,22 @@ setting in struts.properties. The content of struts-default.xml is here: -?xml version="1.0" encoding="UTF-8" ? -!-- -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ --- - -!-- -When declaring beans in this file you must either use name="struts" or don't name the bean at all. - -The name="struts" must be used when alias was defined in {@link org.apache.struts2.config.DefaultBeanSelectionProvider} - -it is then the default bean's name and {@link org.apache.struts2.config.DefaultBeanSelectionProvider} links name "struts" -with "default" (aliasing it) - -If name won't be defined then the "default" value will be used {@link com.opensymphony.xwork2.inject.Container#DEFAULT_NAME} -and {@link com.opensymphony.xwork2.inject.Inject} --- -!DOCTYPE struts PUBLIC -"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" -"http://struts.apache.org/dtds/struts-2.5.dtd"; - -struts - -constant name="struts.excludedClasses" - value=" -java.lang.Object, -java.lang.Runtime, -java.lang.System, -java.lang.Class, -java.lang.ClassLoader, -java.lang.Shutdown, -java.lang.ProcessBuilder, -ognl.OgnlContext, -ognl.ClassResolver, -ognl.TypeConverter, -ognl.MemberAccess, -ognl.DefaultMemberAccess, -com.opensymphony.xwork2.ognl.SecurityMemberAccess, -com.opensymphony.xwork2.ActionContext" / - -!-- this must be valid regex, each '.' in package name must be escaped! -- -!-- it's more flexible but slower than simple string comparison -- -!-- constant name="struts.excludedPackageNamePatterns" value="^java\.lang\..*,^ognl.*,^(?!javax\.servlet\..+)(javax\..+)" / -- - -!-- this is simpler version of the above used with string comparison -- -constant name="struts.excludedPackageNames" - value=" -java.lang., -ognl., -javax, -freemarker.core., -freemarker.template., -freemarker.ext.rhino., -freemarker.ext.beans., -sun.reflect., -javassist." / - -bean class="com.opensymphony.xwork2.ObjectFactory" name="struts"/ -bean type="com.opensymphony.xwork2.factory.ResultFactory" name="struts" class="org.apache.struts2.factory.StrutsResultFactory" / -bean type="com.opensymphony.xwork2.factory.ActionFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultActionFactory" / -bean type="com.opensymphony.xwork2.factory.ConverterFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultConverterFactory" / -bean type="com.opensymphony.xwork2.factory.InterceptorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultInterceptorFactory" / -bean type="com.opensymphony.xwork2.factory.ValidatorFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultValidatorFactory" / -bean type="com.opensymphony.xwork2.factory.UnknownHandlerFactory" name="struts" class="com.opensymphony.xwork2.factory.DefaultUnknownHandlerFactory" / - -bean type="com.opensymphony.xwork2.FileManager" class="com.opensymphony.xwork2.util.fs.DefaultFileManager" name="system" scope="singleton"/ -bean type="com.opensymphony.xwork2.FileManagerFactory" class="com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory" name="struts" scope="singleton"/ - -bean type="com.opensymphony.xwork2.ActionProxyFactory" name="struts"
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 64baebde5 -> 9476ddfa1 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/9476ddfa Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/9476ddfa Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/9476ddfa Branch: refs/heads/asf-site Commit: 9476ddfa1c63c74e4a64bf261e070a8b3732ecff Parents: 64baebd Author: jenkinsAuthored: Wed Aug 23 11:50:37 2017 + Committer: jenkins Committed: Wed Aug 23 11:50:37 2017 + -- content/plugins/junit/index.html | 228 +- 1 file changed, 143 insertions(+), 85 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/9476ddfa/content/plugins/junit/index.html -- diff --git a/content/plugins/junit/index.html b/content/plugins/junit/index.html index 3e9d003..0ce6844 100644 --- a/content/plugins/junit/index.html +++ b/content/plugins/junit/index.html @@ -143,82 +143,89 @@ be tested. an action: - Mapping: -```xml + Mapping: - - - - -/template.ftl - - - -- Action: -```java -public class TestAction extends ActionSupport { -private String name; - -public String getName() { -return name; -} -public void setName(String name) { -this.name = name; -} -} +struts +constant name="struts.objectFactory" value="spring"/ +package name="test" namespace="/test" extends="struts-default" +action name="testAction" class="org.apache.struts2.TestAction" +result type="freemarker"/template.ftl/result +/action +/package +/struts + + + + + Action: + + +public class TestAction extends ActionSupport { +private String name; + +public String getName() { +return name; +} + +public void setName(String name) { +this.name = name; +} +} + - JUnit: -```java -package org.apache.struts2; + JUnit: -import org.apache.struts2.dispatcher.mapper.ActionMapping; - -import java.util.HashMap; -import java.io.UnsupportedEncodingException; - -import com.opensymphony.xwork2.ActionProxy; -import com.opensymphony.xwork2.Action; - -import javax.servlet.ServletException; - -public class StrutsTestCaseTest extends StrutsTestCase { -public void testGetActionMapping() { -ActionMapping mapping = getActionMapping(â/test/testAction.actionâ); -assertNotNull(mapping); -assertEquals(â/testâ, mapping.getNamespace()); -assertEquals(âtestActionâ, mapping.getName()); -} - -public void testGetActionProxy() throws Exception { -//set parameters before calling getActionProxy -request.setParameter("name", "FD"); - -ActionProxy proxy = getActionProxy("/test/testAction.action"); -assertNotNull(proxy); - -TestAction action = (TestAction) proxy.getAction(); -assertNotNull(action); - -String result = proxy.execute(); -assertEquals(Action.SUCCESS, result); -assertEquals("FD", action.getName()); -} - -public void testExecuteAction() throws ServletException, UnsupportedEncodingException { -String output = executeAction("/test/testAction.action"); -assertEquals("Hello", output); -} - -public void testGetValueFromStack() throws ServletException, UnsupportedEncodingException { -request.setParameter("name", "FD"); -executeAction("/test/testAction.action"); -String name = (String) findValueAfterExecute("name"); -assertEquals("FD", name); -} } ``` +package org.apache.struts2; + +import org.apache.struts2.dispatcher.mapper.ActionMapping; + +import java.util.HashMap; +import java.io.UnsupportedEncodingException; + +import com.opensymphony.xwork2.ActionProxy; +import com.opensymphony.xwork2.Action; + +import javax.servlet.ServletException; + +public class StrutsTestCaseTest extends StrutsTestCase { +public void testGetActionMapping() { +ActionMapping mapping = getActionMapping("/test/testAction.action"); +assertNotNull(mapping); +assertEquals("/test", mapping.getNamespace()); +assertEquals("testAction", mapping.getName()); +} + +public void testGetActionProxy() throws Exception { +//set parameters before calling getActionProxy +request.setParameter("name", "FD"); + +ActionProxy proxy = getActionProxy("/test/testAction.action"); +assertNotNull(proxy); + +TestAction action = (TestAction) proxy.getAction(); +assertNotNull(action); + +String result = proxy.execute(); +assertEquals(Action.SUCCESS, result); +assertEquals("FD", action.getName()); +} + +public
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 6775f9c62 -> 64baebde5 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/64baebde Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/64baebde Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/64baebde Branch: refs/heads/asf-site Commit: 64baebde56594db4273c0892eb2385f196f8ecdb Parents: 6775f9c Author: jenkinsAuthored: Wed Aug 23 11:48:36 2017 + Committer: jenkins Committed: Wed Aug 23 11:48:36 2017 + -- content/plugins/junit/index.html | 63 +-- 1 file changed, 30 insertions(+), 33 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/64baebde/content/plugins/junit/index.html -- diff --git a/content/plugins/junit/index.html b/content/plugins/junit/index.html index 2e350c0..3e9d003 100644 --- a/content/plugins/junit/index.html +++ b/content/plugins/junit/index.html @@ -144,8 +144,9 @@ an action: Mapping: -```xml - +```xml + + @@ -153,40 +154,38 @@ an action: -``` - - -Action: -```java +- Action: +```java public class TestAction extends ActionSupport { -private String name; +private String name; + +public String getName() { +return name; +} -public String getName() { -return name; +public void setName(String name) { +this.name = name; +} } - -public void setName(String name) { -this.name = name; -} } ``` - - - -JUnit: + + + JUnit: ```java -package org.apache.struts2; +package org.apache.struts2; + -import org.apache.struts2.dispatcher.mapper.ActionMapping; +import org.apache.struts2.dispatcher.mapper.ActionMapping; -import java.util.HashMap; +import java.util.HashMap; import java.io.UnsupportedEncodingException; -import com.opensymphony.xwork2.ActionProxy; +import com.opensymphony.xwork2.ActionProxy; import com.opensymphony.xwork2.Action; -import javax.servlet.ServletException; +import javax.servlet.ServletException; -public class StrutsTestCaseTest extends StrutsTestCase { +public class StrutsTestCaseTest extends StrutsTestCase { public void testGetActionMapping() { ActionMapping mapping = getActionMapping(â/test/testAction.actionâ); assertNotNull(mapping); @@ -194,26 +193,26 @@ import com.opensymphony.xwork2.Action; assertEquals(âtestActionâ, mapping.getName()); } -public void testGetActionProxy() throws Exception { +public void testGetActionProxy() throws Exception { //set parameters before calling getActionProxy request.setParameter("name", "FD"); - + ActionProxy proxy = getActionProxy("/test/testAction.action"); assertNotNull(proxy); - + TestAction action = (TestAction) proxy.getAction(); assertNotNull(action); - + String result = proxy.execute(); assertEquals(Action.SUCCESS, result); assertEquals("FD", action.getName()); } - + public void testExecuteAction() throws ServletException, UnsupportedEncodingException { String output = executeAction("/test/testAction.action"); assertEquals("Hello", output); } - + public void testGetValueFromStack() throws ServletException, UnsupportedEncodingException { request.setParameter("name", "FD"); executeAction("/test/testAction.action"); @@ -221,9 +220,7 @@ public void testGetValueFromStack() throws ServletException, UnsupportedEncoding assertEquals("FD", name); } } ``` - - - + The template
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site e8baeb931 -> 6775f9c62 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/6775f9c6 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/6775f9c6 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/6775f9c6 Branch: refs/heads/asf-site Commit: 6775f9c6231b9f5af19337b7ab084a7dfbf4fec7 Parents: e8baeb9 Author: jenkinsAuthored: Wed Aug 23 11:46:12 2017 + Committer: jenkins Committed: Wed Aug 23 11:46:12 2017 + -- content/plugins/convention/index.html | 2 +- content/plugins/junit/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/6775f9c6/content/plugins/convention/index.html -- diff --git a/content/plugins/convention/index.html b/content/plugins/convention/index.html index e1c7631..0d1bf0b 100644 --- a/content/plugins/convention/index.html +++ b/content/plugins/convention/index.html @@ -124,7 +124,7 @@ << back to Plugins -[Edit on GitHub](https://github.com/apache/struts-site/edit/master/source/plugins/convention/index.md){: .edit-on-gh title="Edit this page on GitHub"} +https://github.com/apache/struts-site/edit/master/source/plugins/convention/index.md; title="Edit this page on GitHub">Edit on GitHub Convention Plugin http://git-wip-us.apache.org/repos/asf/struts-site/blob/6775f9c6/content/plugins/junit/index.html -- diff --git a/content/plugins/junit/index.html b/content/plugins/junit/index.html index b0fd087..2e350c0 100644 --- a/content/plugins/junit/index.html +++ b/content/plugins/junit/index.html @@ -124,7 +124,7 @@ << back to Plugins -[Edit on GitHub](https://github.com/apache/struts-site/edit/master/source/plugins/junit/index.md){: .edit-on-gh title="Edit this page on GitHub"} +https://github.com/apache/struts-site/edit/master/source/plugins/junit/index.md; title="Edit this page on GitHub">Edit on GitHub JUnit plugin
[2/4] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/d572a9ef Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/d572a9ef Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/d572a9ef Branch: refs/heads/asf-site Commit: d572a9efb2bfecf432c32c7496900c5c52fba9d3 Parents: 339b701 Author: jenkinsAuthored: Mon Jul 31 11:41:14 2017 + Committer: jenkins Committed: Mon Jul 31 11:41:14 2017 + -- content/announce-2008.html| 320 +++ content/announce-2009.html| 114 +-- content/announce-2010.html| 202 ++--- content/announce-2012.html| 562 ++-- content/css/maven-base.css| 284 +++--- content/css/maven-classic.css | 1732 ++-- content/css/maven-theme.css | 164 ++-- content/css/print.css | 14 +- content/dtds/struts-2.1.7.dtd | 298 +++ content/dtds/struts-2.1.dtd | 292 +++--- content/img/download-icon.svg | 20 +- content/img/primer-icon.svg | 24 +- content/img/struts-logo.svg | 70 +- content/planetstruts.txt | 60 +- content/robots.txt|2 +- 15 files changed, 2079 insertions(+), 2079 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/d572a9ef/content/announce-2008.html -- diff --git a/content/announce-2008.html b/content/announce-2008.html index 0392452..d3a770e 100644 --- a/content/announce-2008.html +++ b/content/announce-2008.html @@ -123,166 +123,166 @@ -Announcements - 2008 - - - Skip to: Announcements - 2007 - - -04 December 2008 - Struts 1.3.10 General Availability Release - - The Apache Struts group is pleased to announce that Struts 1.3.10 - is available as a "General Availability" release. The GA designation is - our highest quality grade. - - - Struts 1.3.10 is available in a full distribution, or as separate - library, source, example and documentation distributions. - - - http://struts.apache.org/download.cgi#struts1310;> -http://struts.apache.org/download.cgi#struts1310 - - - It is also available in the central Maven repository under Group ID - "org.apache.struts". - - -24 November 2008 - Struts 2.0.14 General Availability Release - - The Apache Struts group is pleased to announce that Struts 2.0.14 is - available as a "General Availability" release. The GA designation is - our highest quality grade. - - - Apache Struts 2 is an elegant, extensible framework for creating - enterprise-ready Java web applications. The framework is designed to - streamline the full development cycle, from building, to deploying, to - maintaining applications over time. - - - This release is a bugfix release for version 2.0.12, which provided important - security fixes. - Struts 2.0.14 addresses two major bugs introduced with these security fixes, - keeping the FilterDispatcher from serving built in static resources, - and keeping conversion error messages from being displayed. - - - All developers are strongly encouraged to update existing Struts 2 applications - to Struts 2.0.14. - - - Struts 2.0.14 is available in a full distribution, - or as separate library, source, example and documentation - distributions, from the - http://struts.apache.org/download.cgi#struts2014;>releases page. - The release is also available through the central Maven repository under Group ID - "org.apache.struts". The - http://struts.apache.org/2.0.14/docs/release-notes-2014.html;>release notes - are available online. - - - The 2.0.x series of the Apache Struts framework has a minimum - requirement of the following specification versions: Servlet API 2.4, - JSP API 2.0, Java 5, Backported Java 4 JARs are also available. - - - Should any issues arise with your use of any version of the Struts - framework, please post your comments to the user list, and, if - appropriate, file a - https://issues.apache.org/struts/secure/Dashboard.jspa;>tracking ticket. - - - -20 October 2008 - Struts 2.0.12 General Availability Release - - The Apache Struts group is pleased to announce that Struts 2.0.12 is - available as a "General Availability" release. The GA designation is - our highest quality grade. - - - Apache Struts 2 is an elegant, extensible framework for creating - enterprise-ready Java web applications. The framework is designed to - streamline the full development cycle, from building, to deploying, to - maintaining applications over time. - - - This release includes a number of bug fixes since the - 2.0.11.2 GA release, including important security fixes regarding remote - server context manipulation by injecting OGNL expressions in request parameters
[4/4] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/e8baeb93 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/e8baeb93 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/e8baeb93 Branch: refs/heads/asf-site Commit: e8baeb931e48f7cd360160b6923af48d534886f4 Parents: c4f3bdc Author: jenkinsAuthored: Wed Aug 23 11:43:40 2017 + Committer: jenkins Committed: Wed Aug 23 11:43:40 2017 + -- content/core-developers/index.html| 2 +- content/plugins/convention/index.html | 3 +- content/plugins/index.html| 1 + content/plugins/junit/index.html | 327 + 4 files changed, 330 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/e8baeb93/content/core-developers/index.html -- diff --git a/content/core-developers/index.html b/content/core-developers/index.html index f8a2c41..20ab91c 100644 --- a/content/core-developers/index.html +++ b/content/core-developers/index.html @@ -164,7 +164,7 @@ Each may be configured via XML or annotations. Application Servers Performance Tuning Security - [Testing Actions] - export https://cwiki.apache.org/confluence/display/WW/Testing+Actions + Testing Actions https://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/;>(arsenalist) http://fassisrosa.blogspot.com/2006/11/unit-testing-struts-20\.html;>(rosa) http://git-wip-us.apache.org/repos/asf/struts-site/blob/e8baeb93/content/plugins/convention/index.html -- diff --git a/content/plugins/convention/index.html b/content/plugins/convention/index.html index d3dff08..e1c7631 100644 --- a/content/plugins/convention/index.html +++ b/content/plugins/convention/index.html @@ -124,10 +124,9 @@ << back to Plugins +[Edit on GitHub](https://github.com/apache/struts-site/edit/master/source/plugins/convention/index.md){: .edit-on-gh title="Edit this page on GitHub"} Convention Plugin -https://github.com/apache/struts-site/edit/master/source/plugins/convention/index.md; class="edit-on-gh" title="Edit this page on GitHub">Edit on GitHub - Introduction Setup http://git-wip-us.apache.org/repos/asf/struts-site/blob/e8baeb93/content/plugins/index.html -- diff --git a/content/plugins/index.html b/content/plugins/index.html index e7e8d1d..4872474 100644 --- a/content/plugins/index.html +++ b/content/plugins/index.html @@ -127,6 +127,7 @@ Convention plugin + JUnit plugin http://git-wip-us.apache.org/repos/asf/struts-site/blob/e8baeb93/content/plugins/junit/index.html -- diff --git a/content/plugins/junit/index.html b/content/plugins/junit/index.html new file mode 100644 index 000..b0fd087 --- /dev/null +++ b/content/plugins/junit/index.html @@ -0,0 +1,327 @@ + + + + + + + + + + Convention plugin + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Tutorials +FAQs +
[1/4] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 4a447d6de -> e8baeb931 http://git-wip-us.apache.org/repos/asf/struts-site/blob/d572a9ef/content/css/print.css -- diff --git a/content/css/print.css b/content/css/print.css index 2ab336b..2b11058 100644 --- a/content/css/print.css +++ b/content/css/print.css @@ -1,7 +1,7 @@ -#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { - display: none; -} -#bodyColumn, body.docs div.docs { - margin: 0 !important; - border: none !important -} +#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { + display: none; +} +#bodyColumn, body.docs div.docs { + margin: 0 !important; + border: none !important +} http://git-wip-us.apache.org/repos/asf/struts-site/blob/d572a9ef/content/dtds/struts-2.1.7.dtd -- diff --git a/content/dtds/struts-2.1.7.dtd b/content/dtds/struts-2.1.7.dtd index 239b4db..94ce3c9 100644 --- a/content/dtds/struts-2.1.7.dtd +++ b/content/dtds/struts-2.1.7.dtd @@ -1,149 +1,149 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/d572a9ef/content/dtds/struts-2.1.dtd -- diff --git a/content/dtds/struts-2.1.dtd b/content/dtds/struts-2.1.dtd index c4a5c95..2a9e818 100644 --- a/content/dtds/struts-2.1.dtd +++ b/content/dtds/struts-2.1.dtd @@ -1,146 +1,146 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/d572a9ef/content/img/download-icon.svg -- diff --git a/content/img/download-icon.svg b/content/img/download-icon.svg index 298b099..3a056e0 100755 --- a/content/img/download-icon.svg +++ b/content/img/download-icon.svg @@ -1,10 +1,10 @@ - - -http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> -http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" -width="17px" height="19px" viewBox="0 0 17 19" enable-background="new 0 0 17 19" xml:space="preserve"> - - - - - + + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> +http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" +width="17px" height="19px" viewBox="0 0 17 19" enable-background="new 0 0 17 19" xml:space="preserve"> + + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/d572a9ef/content/img/primer-icon.svg -- diff --git a/content/img/primer-icon.svg b/content/img/primer-icon.svg index e72a4bf..24d262f 100755 --- a/content/img/primer-icon.svg +++ b/content/img/primer-icon.svg @@ -1,12 +1,12 @@ - - -http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> -http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" -width="28.991px" height="20px" viewBox="2.009 3.5 28.991 20" enable-background="new 2.009 3.5 28.991 20" xml:space="preserve"> - - - + + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> +http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" +width="28.991px" height="20px" viewBox="2.009 3.5 28.991 20" enable-background="new 2.009 3.5 28.991 20" xml:space="preserve"> + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/d572a9ef/content/img/struts-logo.svg -- diff --git a/content/img/struts-logo.svg b/content/img/struts-logo.svg index 23971b7..3c37644 100755 --- a/content/img/struts-logo.svg +++ b/content/img/struts-logo.svg @@ -1,35 +1,35 @@ - - -http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> -http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" -viewBox="0 0 210 60" enable-background="new 0 0 210 60" xml:space="preserve"> - - - - - - - - - - - - - - - - - - - - - - - + + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> +http://www.w3.org/2000/svg;
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 2a2db903d -> 4a447d6de Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/4a447d6d Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/4a447d6d Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/4a447d6d Branch: refs/heads/asf-site Commit: 4a447d6ded353daca2b46f13d6f5e6deec276c27 Parents: 2a2db90 Author: jenkinsAuthored: Wed Aug 23 11:28:53 2017 + Committer: jenkins Committed: Wed Aug 23 11:28:53 2017 + -- content/core-developers/configuration-files.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/4a447d6d/content/core-developers/configuration-files.html -- diff --git a/content/core-developers/configuration-files.html b/content/core-developers/configuration-files.html index 2b6d14e..ef1c2fc 100644 --- a/content/core-developers/configuration-files.html +++ b/content/core-developers/configuration-files.html @@ -165,7 +165,7 @@ See Reloading configuration for more. Â - struts.properties + default.properties yes /WEB-INF/classes/ Framework properties
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 1b9b67fae -> 2a2db903d Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/2a2db903 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/2a2db903 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/2a2db903 Branch: refs/heads/asf-site Commit: 2a2db903d573fd53cd557bc17cfb12b7c558ce3a Parents: 1b9b67f Author: jenkinsAuthored: Wed Aug 23 11:26:54 2017 + Committer: jenkins Committed: Wed Aug 23 11:26:54 2017 + -- .../core-developers/application-servers.html| 47 +++--- content/core-developers/index.html | 2 +- content/core-developers/performance-tuning.html | 91 +++- content/core-developers/struts-default-vm.html | 11 +-- .../core-developers/velocity-properties.html| 21 ++--- 5 files changed, 72 insertions(+), 100 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/2a2db903/content/core-developers/application-servers.html -- diff --git a/content/core-developers/application-servers.html b/content/core-developers/application-servers.html index 2c1209b..e48db85 100644 --- a/content/core-developers/application-servers.html +++ b/content/core-developers/application-servers.html @@ -127,42 +127,21 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/application-servers.md; title="Edit this page on GitHub">Edit on GitHub Application Servers -The framework is known to work well with most application servers. If a serverâs name is linked, then there may be some extra steps to obtain full functionality. +The framework is known to work well with most application servers. If a serverâs name is linked, then there may +be some extra steps to obtain full functionality. - -Jetty - - -JRun - - -OC4J - - -Orion - - -Resin - - -SunOne 7.0 - - -JBoss 5 - - -WebLogic - - -WebLogic 6.1 - - -WebSphere - - -Glassfish 2.x - + Jetty + JRun + OC4J + Orion + Resin + SunOne 7.0 + JBoss 5 + WebLogic + WebLogic 6.1 + WebSphere + Glassfish 2.x http://git-wip-us.apache.org/repos/asf/struts-site/blob/2a2db903/content/core-developers/index.html -- diff --git a/content/core-developers/index.html b/content/core-developers/index.html index efa90c8..f8a2c41 100644 --- a/content/core-developers/index.html +++ b/content/core-developers/index.html @@ -155,7 +155,7 @@ Each may be configured via XML or annotations. web.xml struts.xml - struts.properties + default.properties struts-default.xml velocity.properties struts-default.vm http://git-wip-us.apache.org/repos/asf/struts-site/blob/2a2db903/content/core-developers/performance-tuning.html -- diff --git a/content/core-developers/performance-tuning.html b/content/core-developers/performance-tuning.html index 20a6461..eb40a5d 100644 --- a/content/core-developers/performance-tuning.html +++ b/content/core-developers/performance-tuning.html @@ -127,80 +127,91 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/performance-tuning.md; title="Edit this page on GitHub">Edit on GitHub Performance Tuning -Performance tuning +Performance tuning The following are some tips and tricks to squeeze the most performance out of Struts 2. - - - - For Struts 2 versions before 2.3: the OGNL version 3.0.3 library is a drop-in replacement for older OGNL jars, and provides much better performance. See the following Jira issue for more information: https://issues\.apache\.org/jira/browse/WW\-3580;>https://issues.apache.org/jira/browse/WW-3580 - - - + + For Struts 2 versions before 2.3: the OGNL version 3.0.3 library is a drop-in replacement for older OGNL jars, +and provides much better performance. See the following JIRA issue for more information: +https://issues.apache.org/jira/browse/WW-3580;>https://issues.apache.org/jira/browse/WW-3580 + - - - - - - +Turn off logging and devMode -#Turn off logging and devMode.# +The devMode allows reloading of configuration and validation related files, but because they +happen on each request, this setting will totally kill your performance. +When using logging, make sure to turn off logging (esp. Freemarker generates a LOT of logging), and check if a level is +enabled before printing it, or you will get the cost of the String
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 40d302a8b -> 1b9b67fae Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/1b9b67fa Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/1b9b67fa Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/1b9b67fa Branch: refs/heads/asf-site Commit: 1b9b67faea53d30d5eec096baa1449ae8fb2e3dd Parents: 40d302a Author: jenkinsAuthored: Wed Aug 23 11:17:30 2017 + Committer: jenkins Committed: Wed Aug 23 11:17:30 2017 + -- .../core-developers/configuration-files.html| 49 +-- content/core-developers/default-properties.html | 422 +++ content/core-developers/struts-xml.html | 33 +- content/core-developers/web-xml.html| 252 +-- 4 files changed, 544 insertions(+), 212 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/1b9b67fa/content/core-developers/configuration-files.html -- diff --git a/content/core-developers/configuration-files.html b/content/core-developers/configuration-files.html index f6d8082..2b6d14e 100644 --- a/content/core-developers/configuration-files.html +++ b/content/core-developers/configuration-files.html @@ -127,19 +127,14 @@ https://github.com/apache/struts-site/edit/master/source/core-developers/configuration-files.md; title="Edit this page on GitHub">Edit on GitHub Configuration Files -From a Struts developer point of view, the one required configuration file used by the framework is +From a Struts developer point of view, the one required configuration file used by the framework is web.xml. +From here, you have full control over how Struts configures both itself and your application. By default, Struts will +load a set of internal configuration files to configure itself, then another set to configure your application, however +it is possible to build an entire Struts application without writing a single configuration file other than web.xml. -web.xml - - -. From here, you have full control over how Struts configures both itself and your application. By default, Struts will load a set of internal configuration files to configure itself, then another set to configure your application, however it is possible to build an entire Struts application without writing a single configuration file other than - -web.xml - - -. - -The table lists the files that you can use to configure the framework for your application. Some configuration files can be reloaded dynamically. Dynamic reloading makes interactive development possible. See Reloading configuration for more. +The table lists the files that you can use to configure the framework for your application. Some configuration files +can be reloaded dynamically. Dynamic reloading makes interactive development possible. +See Reloading configuration for more. @@ -191,7 +186,7 @@ struts-plugin.xml yes At the root of a plugin JAR - Optional configuration files for Plugins in the same format as struts.xml. + Optional configuration files for Plugins in the same format as struts.xml. velocity.properties @@ -202,32 +197,22 @@ -Static Content - -Common static content that is needed by the framework (JavaScript and CSS files, etc.) is served automatically by the FilterDispatcher filter. Any request starting with â - -/struts/ - - -â denotes that static content is required, and then mapping the value after â +Static Content -/struts/ - - -â to common packages in the framework and, optionally in the applicationâs class path. +Common static content that is needed by the framework (JavaScript and CSS files, etc.) is served automatically by +the FilterDispatcher filter. Any request starting with /struts/ denotes that static content is required, and then +mapping the value after /struts/ to common packages in the framework and, optionally in the applicationâs class path. By default, the following packages are searched: - -org.apache.struts2.static - - -template - + org.apache.struts2.static + template -Additional packages can be specified by providing a comma separated list to the configuration parameter named âpackagesâ (configured in web.xml for the FilterDispatcher filter). When specifying additional static content, you should be careful not to expose sensitive configuration information (such as the password to a database). +Additional packages can be specified by providing a comma separated list to the configuration parameter named âpackagesâ +(configured in web.xml for the
[2/2] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/40d302a8 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/40d302a8 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/40d302a8 Branch: refs/heads/asf-site Commit: 40d302a8b6485369e61aa03bfc91153e64e2631c Parents: c88a260 Author: jenkinsAuthored: Wed Aug 23 09:00:46 2017 + Committer: jenkins Committed: Wed Aug 23 09:00:46 2017 + -- .../accessing-application-session-request-objects.html | 1 + content/core-developers/action-chaining.html| 1 + content/core-developers/action-configuration.html | 1 + content/core-developers/action-event-listener.html | 1 + content/core-developers/action-mapper-and-action-mapping.html | 1 + content/core-developers/action-mapper.html | 1 + content/core-developers/action-proxy-and-actionproxy-factory.html | 1 + content/core-developers/after-annotation.html | 1 + content/core-developers/ajax-client-side-validation.html| 1 + content/core-developers/ajax.html | 1 + content/core-developers/alias-interceptor.html | 1 + content/core-developers/annotation-workflow-interceptor.html| 1 + content/core-developers/annotations.html| 1 + content/core-developers/application-servers.html| 1 + content/core-developers/basic-validation.html | 1 + content/core-developers/bean-configuration.html | 1 + content/core-developers/before-annotation.html | 1 + content/core-developers/before-result-annotation.html | 1 + content/core-developers/chain-result.html | 1 + content/core-developers/chaining-interceptor.html | 1 + content/core-developers/checkbox-interceptor.html | 1 + content/core-developers/client-side-validation.html | 1 + content/core-developers/client-validation.html | 1 + content/core-developers/conditionalvisitor-validator.html | 1 + content/core-developers/configuration-elements.html | 1 + content/core-developers/configuration-files.html| 1 + .../core-developers/configuration-provider-and-configuration.html | 1 + content/core-developers/constant-configuration.html | 1 + content/core-developers/conversion-annotation.html | 1 + .../conversion-error-field-validator-annotation.html| 1 + content/core-developers/conversion-error-interceptor.html | 1 + content/core-developers/conversion-validator.html | 1 + content/core-developers/cookie-interceptor.html | 1 + content/core-developers/cookie-provider-interceptor.html| 1 + content/core-developers/create-if-null-annotation.html | 1 + content/core-developers/create-session-interceptor.html | 1 + content/core-developers/custom-validator-annotation.html| 1 + content/core-developers/date-range-field-validator-annotation.html | 1 + content/core-developers/date-validator.html | 1 + content/core-developers/debugging-interceptor.html | 1 + content/core-developers/debugging.html | 1 + content/core-developers/default-workflow-interceptor.html | 1 + content/core-developers/dependency-injection.html | 1 + content/core-developers/development-mode.html | 1 + content/core-developers/dispatcher-listener.html| 1 + content/core-developers/dispatcher-result.html | 1 + content/core-developers/dispatcher.html | 1 + .../core-developers/double-range-field-validator-annotation.html| 1 + content/core-developers/double-validator.html | 1 + content/core-developers/element-annotation.html | 1 + content/core-developers/email-validator-annotation.html | 1 + content/core-developers/email-validator.html| 1 + content/core-developers/exception-configuration.html| 1 + content/core-developers/exception-interceptor.html | 1 + content/core-developers/execute-and-wait-interceptor.html | 1 + content/core-developers/expression-validator-annotation.html| 1 + content/core-developers/expression-validator.html | 1 + content/core-developers/field-expression-validator-annotation.html | 1 +
[1/2] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site c88a260e1 -> 40d302a8b http://git-wip-us.apache.org/repos/asf/struts-site/blob/40d302a8/content/core-developers/jboss-5.html -- diff --git a/content/core-developers/jboss-5.html b/content/core-developers/jboss-5.html index a67a786..35bf84c 100644 --- a/content/core-developers/jboss-5.html +++ b/content/core-developers/jboss-5.html @@ -124,6 +124,7 @@ << back to Core Developers Guide +https://github.com/apache/struts-site/edit/master/source/core-developers/jboss-5.md; title="Edit this page on GitHub">Edit on GitHub JBoss 5 Convention plugin support http://git-wip-us.apache.org/repos/asf/struts-site/blob/40d302a8/content/core-developers/key-annotation.html -- diff --git a/content/core-developers/key-annotation.html b/content/core-developers/key-annotation.html index 4758db3..892dc3e 100644 --- a/content/core-developers/key-annotation.html +++ b/content/core-developers/key-annotation.html @@ -124,6 +124,7 @@ << back to Core Developers Guide +https://github.com/apache/struts-site/edit/master/source/core-developers/key-annotation.md; title="Edit this page on GitHub">Edit on GitHub Key Annotation {snippet:id=description|javadoc=true|url=com.opensymphony.xwork2.util.Key} http://git-wip-us.apache.org/repos/asf/struts-site/blob/40d302a8/content/core-developers/key-property-annotation.html -- diff --git a/content/core-developers/key-property-annotation.html b/content/core-developers/key-property-annotation.html index 79f01a2..40c45a6 100644 --- a/content/core-developers/key-property-annotation.html +++ b/content/core-developers/key-property-annotation.html @@ -124,6 +124,7 @@ << back to Core Developers Guide +https://github.com/apache/struts-site/edit/master/source/core-developers/key-property-annotation.md; title="Edit this page on GitHub">Edit on GitHub KeyProperty Annotation {snippet:id=description|javadoc=true|url=com.opensymphony.xwork2.util.KeyProperty} http://git-wip-us.apache.org/repos/asf/struts-site/blob/40d302a8/content/core-developers/localization.html -- diff --git a/content/core-developers/localization.html b/content/core-developers/localization.html index 9830b9b..f4645cd 100644 --- a/content/core-developers/localization.html +++ b/content/core-developers/localization.html @@ -124,6 +124,7 @@ << back to Core Developers Guide +https://github.com/apache/struts-site/edit/master/source/core-developers/localization.md; title="Edit this page on GitHub">Edit on GitHub Localization Overview http://git-wip-us.apache.org/repos/asf/struts-site/blob/40d302a8/content/core-developers/logger-interceptor.html -- diff --git a/content/core-developers/logger-interceptor.html b/content/core-developers/logger-interceptor.html index 7459cc0..1df75ea 100644 --- a/content/core-developers/logger-interceptor.html +++ b/content/core-developers/logger-interceptor.html @@ -124,6 +124,7 @@ << back to Core Developers Guide +https://github.com/apache/struts-site/edit/master/source/core-developers/logger-interceptor.md; title="Edit this page on GitHub">Edit on GitHub Logger Interceptor {snippet:id=description|javadoc=true|url=com.opensymphony.xwork2.interceptor.LoggingInterceptor} http://git-wip-us.apache.org/repos/asf/struts-site/blob/40d302a8/content/core-developers/logging.html -- diff --git a/content/core-developers/logging.html b/content/core-developers/logging.html index 349ad54..d06ffdf 100644 --- a/content/core-developers/logging.html +++ b/content/core-developers/logging.html @@ -124,6 +124,7 @@ << back to Core Developers Guide +https://github.com/apache/struts-site/edit/master/source/core-developers/logging.md; title="Edit this page on GitHub">Edit on GitHub Logging #Logging support# http://git-wip-us.apache.org/repos/asf/struts-site/blob/40d302a8/content/core-developers/message-store-interceptor.html -- diff --git a/content/core-developers/message-store-interceptor.html b/content/core-developers/message-store-interceptor.html index 36c00ba..956751c 100644 --- a/content/core-developers/message-store-interceptor.html +++ b/content/core-developers/message-store-interceptor.html @@ -124,6 +124,7 @@ << back to Core Developers Guide +https://github.com/apache/struts-site/edit/master/source/core-developers/message-store-interceptor.md; title="Edit this page on GitHub">Edit on GitHub Message Store
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site e2b7cd1ee -> c88a260e1 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/c88a260e Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/c88a260e Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/c88a260e Branch: refs/heads/asf-site Commit: c88a260e12e70cf593959e9c31d3a81be3086852 Parents: e2b7cd1 Author: jenkinsAuthored: Wed Aug 23 08:59:08 2017 + Committer: jenkins Committed: Wed Aug 23 08:59:08 2017 + -- content/core-developers/dispatcher.html | 35 +-- .../core-developers/result-configuration.html | 254 --- content/core-developers/unknown-handlers.html | 59 ++--- 3 files changed, 128 insertions(+), 220 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/c88a260e/content/core-developers/dispatcher.html -- diff --git a/content/core-developers/dispatcher.html b/content/core-developers/dispatcher.html index 28f0281..29c4533 100644 --- a/content/core-developers/dispatcher.html +++ b/content/core-developers/dispatcher.html @@ -126,35 +126,18 @@ << back to Core Developers Guide Dispatcher -###Description### +Dispatcher is the main point of control which dispatch request execution to given actions. It is used +by filters / servlet / listener / portlet to set up and run Struts environment. -Dispatcher is the main point of control which dispatch request execution to given actions. It is used by filters / servlet / listener / portlet to set up and run Struts environment. +Error handling -Error handling +When exception occurs (misconfiguration or some internal error), Dispatcher will pass handling to DispatcherErrorHandler +which by default uses HttpServletResponse#sendError to report error back to client. It will be 404 or 500 by default +(depends on exception type). -When exception occurs (misconfiguration or some internal error), Dispatcher will pass handling to - -DispatcherErrorHandler - - -which by default uses - -HttpServletResponse#sendError - - -to report error back to client. It will be 404 or 500 by default (depends on exception type). - -If you need a different type of handling you can implement your own - -DispatcherErrorHandler - - -and register it with Dispatcher using extension point - -struts.dispatcher.errorHandler - - -, see Plugins for how to register your own implementation of internal mechanism. +If you need a different type of handling you can implement your own DispatcherErrorHandler and register it with +Dispatcher using extension point struts.dispatcher.errorHandler, see Plugins for how +to register your own implementation of internal mechanism. http://git-wip-us.apache.org/repos/asf/struts-site/blob/c88a260e/content/core-developers/result-configuration.html -- diff --git a/content/core-developers/result-configuration.html b/content/core-developers/result-configuration.html index 9450f39..e137de0 100644 --- a/content/core-developers/result-configuration.html +++ b/content/core-developers/result-configuration.html @@ -124,14 +124,19 @@ << back to Core Developers Guide -Result Configuration +Result Configuration -When an action class method completes, it returns a String. The value of the String is used to select a result element. An action mapping will often have a set of results representing different possible outcomes. A standard set of result tokens are defined by the + + Result Elements + Multiple names + Global Results + Dynamic Results + Returning Result Objects + -ActionSupport - - -base class. +When an action class method completes, it returns a String. The value of the String is used to select a result element. +An action mapping will often have a set of results representing different possible outcomes. A standard set of result +tokens are defined by the ActionSupport base class. Predefined result names @@ -140,106 +145,66 @@ String NONE= "none"; String ERROR = "error"; String INPUT = "input"; String LOGIN = "login"; - Of course, applications can define other result tokens to match specific cases. -(information) Returning - -ActionSupport.NONE - - -(or - -null - - -) from an action class method causes the results processing to be skipped. This is useful if the action fully handles the result processing such as writing directly to the HttpServletResponse OutputStream. + + Returning ActionSupport.NONE (or null) from an action class method causes the results processing +to be
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 26bb096d0 -> 47b6ee7b7 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/47b6ee7b Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/47b6ee7b Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/47b6ee7b Branch: refs/heads/asf-site Commit: 47b6ee7b74f245ad2b9dcfc0d47247aad0de79ce Parents: 26bb096 Author: jenkinsAuthored: Mon Jul 31 14:21:57 2017 + Committer: jenkins Committed: Mon Jul 31 14:21:57 2017 + -- .../namespace-configuration.html| 199 +-- .../core-developers/package-configuration.html | 118 +-- 2 files changed, 107 insertions(+), 210 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/47b6ee7b/content/core-developers/namespace-configuration.html -- diff --git a/content/core-developers/namespace-configuration.html b/content/core-developers/namespace-configuration.html index 1fd6938..b82e9f9 100644 --- a/content/core-developers/namespace-configuration.html +++ b/content/core-developers/namespace-configuration.html @@ -126,170 +126,79 @@ << back to Core Developers Guide Namespace Configuration -The namespace attribute subdivides action configurations into logical modules, each with its own identifying prefix. Namespaces avoid conflicts between action names. Each namespace can have its own âmenuâ or âhelpâ action, each with its own implementation. While the prefix appears in the browser URI, the tags are ânamespace awareâ, so the namespace prefix does not need to be embedded in forms and links. +The namespace attribute subdivides action configurations into logical modules, each with its own identifying prefix. +Namespaces avoid conflicts between action names. Each namespace can have its own âmenuâ or âhelpâ action, each with +its own implementation. While the prefix appears in the browser URI, the tags are ânamespace awareâ, so the namespace +prefix does not need to be embedded in forms and links. - - - - Struts 2 Namespaces are the equivalent of Struts Action 1 modules, but more convenient and flexible. - - - + + Struts 2 Namespaces are the equivalent of Struts Action 1 modules, but more convenient and flexible. + - - - - - - +Default Namespace -#Default Namespace# +The default namespace is "" - an empty string. The default namespace is used as a âcatch-allâ namespace. If an action +configuration is not found in a specified namespace, the default namespace is also be searched. The local/global +strategy allows an application to have global action configurations outside of the action element âextendsâ hierarchy. -The default namespace is +The namespace prefix can be registered with Java declarative security, to ensure only authorized users can access +the actions in a given namespace. -"" - - -- an empty string. The default namespace is used as a âcatch-allâ namespace. If an action configuration is not found in a specified namespace, the default namespace is also be searched. The local/global strategy allows an application to have global action configurations outside of the action element âextendsâ hierarchy. - -The namespace prefix can be registered with Java declarative security, to ensure only authorized users can access the actions in a given namespace. - -#Root Namespace# - -A root namespace (â/â) is also supported. The root is the namespace when a request directly under the context path is received. As with other namespaces, it will fall back to the default (ââ) namespace if a local action is not found. - -#Namespace Example# - - -package name="default" -action name="foo" class="mypackage.simpleAction" -result name="success" type="dispatcher"greeting.jsp/result -/action - -action name="bar" class="mypackage.simpleAction" -result name="success" type="dispatcher"bar1.jsp/result -/action -/package - -package name="mypackage1" namespace="/" -action name="moo" class="mypackage.simpleAction" -result name="success" type="dispatcher"moo.jsp/result -/action -/package +Root Namespace -package name="mypackage2" namespace="/barspace" -action name="bar" class="mypackage.simpleAction" -result name="success" type="dispatcher"bar2.jsp/result -/action -/package +A root namespace "/" is also supported. The root is the namespace when a request directly under the context path is +received. As with other namespaces, it will fall back to the default "" namespace if a local action is not
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 36e3e8378 -> 26bb096d0 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/26bb096d Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/26bb096d Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/26bb096d Branch: refs/heads/asf-site Commit: 26bb096d00e60ae9e670053aeb506b77a7406773 Parents: 36e3e83 Author: jenkinsAuthored: Mon Jul 31 14:11:34 2017 + Committer: jenkins Committed: Mon Jul 31 14:11:34 2017 + -- content/core-developers/struts-default-xml.html | 452 +-- 1 file changed, 413 insertions(+), 39 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/26bb096d/content/core-developers/struts-default-xml.html -- diff --git a/content/core-developers/struts-default-xml.html b/content/core-developers/struts-default-xml.html index c11380e..8cc735f 100644 --- a/content/core-developers/struts-default-xml.html +++ b/content/core-developers/struts-default-xml.html @@ -126,45 +126,419 @@ << back to Core Developers Guide struts-default.xml -A base configuration file named - -struts-default.xml - - -is included in the - -struts2.jar - - -file. This file is automatically included into - -struts.xml - - -file to provide the standard configuration settings without having to copy them. - - - - - To exclude the struts-default.xml or to provide your own version, see the struts.configuration.files setting in struts.properties. - - - - - - - - - - - -The contents of struts-default.xml are here: - -{snippet:id=all|lang=xml|url=struts2/core/src/main/resources/struts-default.xml} - - - -This file defines all of the default bundled results and interceptors and many interceptor stacks which you can use either as-is or as a basis for your own application-specific interceptor stacks. Notice the name of the package is âstruts-defaultâ. +A base configuration file named struts-default.xml is included in the struts2-core.jar file. This file is +automatically included into struts.xml file to provide the standard configuration settings without having +to copy them. + + + To exclude the struts-default.xml or to provide your own version, see the struts.configuration.files +setting in struts.properties. + + +The content of struts-default.xml is here: + +?xml version="1.0" encoding="UTF-8" ? +!-- +/* + * $Id$ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +-- + +!-- +When declaring beans in this file you must either use name="struts" or don't name the bean at all. + +The name="struts" must be used when alias was defined in {@link org.apache.struts2.config.DefaultBeanSelectionProvider} - +it is then the default bean's name and {@link org.apache.struts2.config.DefaultBeanSelectionProvider} links name "struts" +with "default" (aliasing it) + +If name won't be defined then the "default" value will be used {@link com.opensymphony.xwork2.inject.Container#DEFAULT_NAME} +and {@link com.opensymphony.xwork2.inject.Inject} +-- +!DOCTYPE struts PUBLIC +"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" +"http://struts.apache.org/dtds/struts-2.5.dtd"; + +struts + +constant name="struts.excludedClasses" + value=" +java.lang.Object, +java.lang.Runtime, +java.lang.System, +java.lang.Class, +java.lang.ClassLoader, +java.lang.Shutdown, +java.lang.ProcessBuilder, +ognl.OgnlContext, +ognl.ClassResolver, +ognl.TypeConverter, +ognl.MemberAccess, +ognl.DefaultMemberAccess, +com.opensymphony.xwork2.ognl.SecurityMemberAccess, +com.opensymphony.xwork2.ActionContext" / + +
struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 950f032b7 -> 36e3e8378 Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/36e3e837 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/36e3e837 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/36e3e837 Branch: refs/heads/asf-site Commit: 36e3e83783a1dc803f9b87f78dd67a2caea56050 Parents: 950f032 Author: jenkinsAuthored: Mon Jul 31 13:32:40 2017 + Committer: jenkins Committed: Mon Jul 31 13:32:40 2017 + -- .../core-developers/include-configuration.html | 29 +++-- .../interceptor-configuration.html | 66 ++-- 2 files changed, 39 insertions(+), 56 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/36e3e837/content/core-developers/include-configuration.html -- diff --git a/content/core-developers/include-configuration.html b/content/core-developers/include-configuration.html index 45a61ae..e3ec8f1 100644 --- a/content/core-developers/include-configuration.html +++ b/content/core-developers/include-configuration.html @@ -126,15 +126,10 @@ << back to Core Developers Guide Include Configuration -A popular strategy is âdivide and conquerâ. The framework lets you apply âdivide and conquerâ to configuration files using the +A popular strategy is âdivide and conquerâ. The framework lets you apply âdivide and conquerâ to configuration files +using the include .../ element. -include .../ - - -element. - - -!DOCTYPE struts PUBLIC +!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"; struts @@ -144,23 +139,13 @@ include file="/util/POJO.xml"/ include file="/com/initech/admin/admin-struts.xml"/ /struts - - - - -Each included file must be in the same format as - -struts.xml - - -, including the - -DOCTYPE -. The include files can be placed anywhere on the classpath and should be referred to by that path by the âfileâ attribute. +Each included file must be in the same format as struts.xml, including the DOCTYPE. The include files can be placed +anywhere on the classpath and should be referred to by that path by the âfileâ attribute. -In a large-team environment, the include files can be used to organize different modules of the application that are being developed by different team members. +In a large-team environment, the include files can be used to organize different modules of the application that are +being developed by different team members. http://git-wip-us.apache.org/repos/asf/struts-site/blob/36e3e837/content/core-developers/interceptor-configuration.html -- diff --git a/content/core-developers/interceptor-configuration.html b/content/core-developers/interceptor-configuration.html index d3b554b..7845aec 100644 --- a/content/core-developers/interceptor-configuration.html +++ b/content/core-developers/interceptor-configuration.html @@ -126,7 +126,9 @@ << back to Core Developers Guide Interceptor Configuration -Interceptors allow you to define code to be executed before and/or after the execution of an Action method. (The âFilterâ pattern.) Interceptors can be a powerful tool when developing applications. There are many, many use cases for Interceptors, including validation, property population, security, logging, and profiling. +Interceptors allow you to define code to be executed before and/or after the execution of an Action method. +(The âFilterâ pattern.) Interceptors can be a powerful tool when developing applications. There are many, many use cases +for Interceptors, including validation, property population, security, logging, and profiling. @@ -151,55 +153,51 @@ -Interceptors can be chained together to create an Interceptor âStackâ. If an action neeeds to check the clientâs credentials, log the action, and time the action, all of these routines, and more, could be made part of the same Interceptor Stack. +Interceptors can be chained together to create an Interceptor âStackâ. If an action needs to check the clientâs +credentials, log the action, and time the action, all of these routines, and more, could be made part of the same +Interceptor Stack. -Interceptors are implemented as Java classes, so each Interceptor has a class name. To make it easier to reference Interceptors, each class can be registered with the framework and given a unique, simpler name. +Interceptors are implemented as Java
[1/4] struts-site git commit: Updates production by Jenkins
Repository: struts-site Updated Branches: refs/heads/asf-site 2d7a9445c -> 950f032b7 http://git-wip-us.apache.org/repos/asf/struts-site/blob/ce7a4169/content/css/print.css -- diff --git a/content/css/print.css b/content/css/print.css index 2ab336b..2b11058 100644 --- a/content/css/print.css +++ b/content/css/print.css @@ -1,7 +1,7 @@ -#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { - display: none; -} -#bodyColumn, body.docs div.docs { - margin: 0 !important; - border: none !important -} +#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { + display: none; +} +#bodyColumn, body.docs div.docs { + margin: 0 !important; + border: none !important +} http://git-wip-us.apache.org/repos/asf/struts-site/blob/ce7a4169/content/dtds/struts-2.1.7.dtd -- diff --git a/content/dtds/struts-2.1.7.dtd b/content/dtds/struts-2.1.7.dtd index 239b4db..94ce3c9 100644 --- a/content/dtds/struts-2.1.7.dtd +++ b/content/dtds/struts-2.1.7.dtd @@ -1,149 +1,149 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/ce7a4169/content/dtds/struts-2.1.dtd -- diff --git a/content/dtds/struts-2.1.dtd b/content/dtds/struts-2.1.dtd index c4a5c95..2a9e818 100644 --- a/content/dtds/struts-2.1.dtd +++ b/content/dtds/struts-2.1.dtd @@ -1,146 +1,146 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/ce7a4169/content/img/download-icon.svg -- diff --git a/content/img/download-icon.svg b/content/img/download-icon.svg index 298b099..3a056e0 100755 --- a/content/img/download-icon.svg +++ b/content/img/download-icon.svg @@ -1,10 +1,10 @@ - - -http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> -http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" -width="17px" height="19px" viewBox="0 0 17 19" enable-background="new 0 0 17 19" xml:space="preserve"> - - - - - + + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> +http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" +width="17px" height="19px" viewBox="0 0 17 19" enable-background="new 0 0 17 19" xml:space="preserve"> + + + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/ce7a4169/content/img/primer-icon.svg -- diff --git a/content/img/primer-icon.svg b/content/img/primer-icon.svg index e72a4bf..24d262f 100755 --- a/content/img/primer-icon.svg +++ b/content/img/primer-icon.svg @@ -1,12 +1,12 @@ - - -http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> -http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" -width="28.991px" height="20px" viewBox="2.009 3.5 28.991 20" enable-background="new 2.009 3.5 28.991 20" xml:space="preserve"> - - - + + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> +http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" +width="28.991px" height="20px" viewBox="2.009 3.5 28.991 20" enable-background="new 2.009 3.5 28.991 20" xml:space="preserve"> + + + http://git-wip-us.apache.org/repos/asf/struts-site/blob/ce7a4169/content/img/struts-logo.svg -- diff --git a/content/img/struts-logo.svg b/content/img/struts-logo.svg index 23971b7..3c37644 100755 --- a/content/img/struts-logo.svg +++ b/content/img/struts-logo.svg @@ -1,35 +1,35 @@ - - -http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> -http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" -viewBox="0 0 210 60" enable-background="new 0 0 210 60" xml:space="preserve"> - - - - - - - - - - - - - - - - - - - - - - - + + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;> +http://www.w3.org/2000/svg;
[2/4] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/ce7a4169 Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/ce7a4169 Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/ce7a4169 Branch: refs/heads/asf-site Commit: ce7a416993b24a028bf597c7e50c331a30c7c10b Parents: 339b701 Author: jenkinsAuthored: Mon Jul 31 11:39:31 2017 + Committer: jenkins Committed: Mon Jul 31 11:39:31 2017 + -- content/announce-2008.html| 320 +++ content/announce-2009.html| 114 +-- content/announce-2010.html| 202 ++--- content/announce-2012.html| 562 ++-- content/css/maven-base.css| 284 +++--- content/css/maven-classic.css | 1732 ++-- content/css/maven-theme.css | 164 ++-- content/css/print.css | 14 +- content/dtds/struts-2.1.7.dtd | 298 +++ content/dtds/struts-2.1.dtd | 292 +++--- content/img/download-icon.svg | 20 +- content/img/primer-icon.svg | 24 +- content/img/struts-logo.svg | 70 +- content/planetstruts.txt | 60 +- content/robots.txt|2 +- 15 files changed, 2079 insertions(+), 2079 deletions(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/ce7a4169/content/announce-2008.html -- diff --git a/content/announce-2008.html b/content/announce-2008.html index 0392452..d3a770e 100644 --- a/content/announce-2008.html +++ b/content/announce-2008.html @@ -123,166 +123,166 @@ -Announcements - 2008 - - - Skip to: Announcements - 2007 - - -04 December 2008 - Struts 1.3.10 General Availability Release - - The Apache Struts group is pleased to announce that Struts 1.3.10 - is available as a "General Availability" release. The GA designation is - our highest quality grade. - - - Struts 1.3.10 is available in a full distribution, or as separate - library, source, example and documentation distributions. - - - http://struts.apache.org/download.cgi#struts1310;> -http://struts.apache.org/download.cgi#struts1310 - - - It is also available in the central Maven repository under Group ID - "org.apache.struts". - - -24 November 2008 - Struts 2.0.14 General Availability Release - - The Apache Struts group is pleased to announce that Struts 2.0.14 is - available as a "General Availability" release. The GA designation is - our highest quality grade. - - - Apache Struts 2 is an elegant, extensible framework for creating - enterprise-ready Java web applications. The framework is designed to - streamline the full development cycle, from building, to deploying, to - maintaining applications over time. - - - This release is a bugfix release for version 2.0.12, which provided important - security fixes. - Struts 2.0.14 addresses two major bugs introduced with these security fixes, - keeping the FilterDispatcher from serving built in static resources, - and keeping conversion error messages from being displayed. - - - All developers are strongly encouraged to update existing Struts 2 applications - to Struts 2.0.14. - - - Struts 2.0.14 is available in a full distribution, - or as separate library, source, example and documentation - distributions, from the - http://struts.apache.org/download.cgi#struts2014;>releases page. - The release is also available through the central Maven repository under Group ID - "org.apache.struts". The - http://struts.apache.org/2.0.14/docs/release-notes-2014.html;>release notes - are available online. - - - The 2.0.x series of the Apache Struts framework has a minimum - requirement of the following specification versions: Servlet API 2.4, - JSP API 2.0, Java 5, Backported Java 4 JARs are also available. - - - Should any issues arise with your use of any version of the Struts - framework, please post your comments to the user list, and, if - appropriate, file a - https://issues.apache.org/struts/secure/Dashboard.jspa;>tracking ticket. - - - -20 October 2008 - Struts 2.0.12 General Availability Release - - The Apache Struts group is pleased to announce that Struts 2.0.12 is - available as a "General Availability" release. The GA designation is - our highest quality grade. - - - Apache Struts 2 is an elegant, extensible framework for creating - enterprise-ready Java web applications. The framework is designed to - streamline the full development cycle, from building, to deploying, to - maintaining applications over time. - - - This release includes a number of bug fixes since the - 2.0.11.2 GA release, including important security fixes regarding remote - server context manipulation by injecting OGNL expressions in request parameters
[4/4] struts-site git commit: Updates production by Jenkins
Updates production by Jenkins Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/950f032b Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/950f032b Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/950f032b Branch: refs/heads/asf-site Commit: 950f032b7fd8bbb469bccc49eb81bd98cdf0279f Parents: 03ddb8d Author: jenkinsAuthored: Mon Jul 31 11:59:41 2017 + Committer: jenkins Committed: Mon Jul 31 11:59:41 2017 + -- .../exception-configuration.html| 321 +++ content/core-developers/index.html | 2 +- 2 files changed, 322 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/struts-site/blob/950f032b/content/core-developers/exception-configuration.html -- diff --git a/content/core-developers/exception-configuration.html b/content/core-developers/exception-configuration.html new file mode 100644 index 000..410c97f --- /dev/null +++ b/content/core-developers/exception-configuration.html @@ -0,0 +1,321 @@ + + + + + + + + + + Exception Configuration + + + + + + + + + + + + + +http://github.com/apache/struts; class="github-ribbon"> + https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa.png; alt="Fork me on GitHub"> + + + + + + + + +Menu +Toggle navigation + + + + + + + + + + +Home + + +Welcome +Downloads +Announcements +http://www.apache.org/licenses/;>License +http://apache.org/foundation/thanks.html;>Thanks! +http://apache.org/foundation/sponsorship.html;>Sponsorship + + + + +Support + + +User Mailing List +https://issues.apache.org/jira/browse/WW;>Issue Tracker +Reporting Security Issues + +Project info +Struts Core dependencies +Plugin dependencies + + + + +Documentation + + +Birds Eye +Key Technologies +Kickstart FAQ +https://cwiki.apache.org/confluence/display/WW/Home;>Wiki + +Getting Started +Security Guide +Tutorials +FAQs +Guides + +Struts Core API +Plugin APIs +Tag reference +http://cwiki.apache.org/S2PLUGINS/home.html;>Plugin registry + +Core Developers Guide (WIP) +Plugins (WIP) + + + + +Contributing + + +You at Struts +How to Help FAQ +Development Lists + +Submitting patches +Source Code +Coding standards + +Release Guidelines +PMC Charter +Volunteers +https://git-wip-us.apache.org/repos/asf?p=struts.git;>Source Repository + + +http://www.apache.org/;> + + + + + + + + + + +<< back to Core Developers Guide +Exception Configuration + +Exception mappings is a powerful feature for dealing with an Action class that throws an Exception. The core idea is +that an Exception thrown during the Action method can be automatically caught and mapped to a predefined Result. This +declarative strategy is especially useful for frameworks, like Hibernate and Acegi, that throw RuntimeExceptions. + +As with many other parts of the framework, an Interceptor is needed to activate the exception mapping functionality. +Below is a snippet from struts-default.xml which has the exception mapping already activated. + +snippet of struts-default.xml + +... +interceptors +... +interceptor name="exception" class="com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor"/ +... +/interceptors + +interceptor-stack name="defaultStack" +interceptor-ref name="exception"/ +interceptor-ref name="alias"/ +interceptor-ref name="servlet-config"/ +interceptor-ref name="prepare"/ +