mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-3652 - Add example for "anchor" (aka "hash" or "fragment") to RedirectActionResult docs (patch submitted by Jeff Black)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -56,17 +56,22 @@ import com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler;
|
||||
*
|
||||
* <ul>
|
||||
*
|
||||
* <li><b>actionName (default)</b> - the name of the action that will be
|
||||
* redirect to</li>
|
||||
* <li><b>actionName (default)</b> - The name of the action that will be
|
||||
* redirected to.</li>
|
||||
*
|
||||
* <li><b>namespace</b> - used to determine which namespace the action is in
|
||||
* that we're redirecting to . If namespace is null, this defaults to the
|
||||
* current namespace</li>
|
||||
* <li><b>namespace</b> - Used to determine which namespace the action is in
|
||||
* that we're redirecting to. If namespace is null, the default will be the
|
||||
* current namespace.</li>
|
||||
*
|
||||
* <li><b>suppressEmptyParameters</b> - optional boolean (defaults to false) that
|
||||
* <li><b>suppressEmptyParameters</b> - Optional boolean (defaults to false) that
|
||||
* can prevent parameters with no values from being included in the redirect
|
||||
* URL.</li>
|
||||
*
|
||||
*
|
||||
* <li><b>parse</b> - Boolean, true by default. If set to false, the actionName
|
||||
* param will not be parsed for Ognl expressions.</li>
|
||||
*
|
||||
* <li><b>anchor</b> - Optional. Also known as "fragment" or colloquially as
|
||||
* "hash". You can specify an anchor for a result.</li>
|
||||
* </ul>
|
||||
*
|
||||
* <!-- END SNIPPET: params -->
|
||||
@@ -98,10 +103,10 @@ import com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler;
|
||||
* </package>
|
||||
*
|
||||
* <package name="passingRequestParameters" extends="struts-default" namespace="/passingRequestParameters">
|
||||
* <-- Pass parameters (reportType, width and height) -->
|
||||
* <!-- Pass parameters (reportType, width and height) -->
|
||||
* <!--
|
||||
* The redirectAction url generated will be :
|
||||
* /genReport/generateReport.action?reportType=pie&width=100&height=100
|
||||
* /genReport/generateReport.action?reportType=pie&width=100&height=100#summary
|
||||
* -->
|
||||
* <action name="gatherReportInfo" class="...">
|
||||
* <result name="showReportResult" type="redirectAction">
|
||||
@@ -112,6 +117,7 @@ import com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler;
|
||||
* <param name="height">100</param>
|
||||
* <param name="empty"></param>
|
||||
* <param name="suppressEmptyParameters">true</param>
|
||||
* <param name="anchor">summary</param>
|
||||
* </result>
|
||||
* </action>
|
||||
* </package>
|
||||
|
||||
@@ -72,8 +72,8 @@ import com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler;
|
||||
* <li><b>parse</b> - true by default. If set to false, the location param will
|
||||
* not be parsed for Ognl expressions.</li>
|
||||
*
|
||||
* <li><b>anchor</b> - optional, you can specify an anchor for result.</li>
|
||||
*
|
||||
* <li><b>anchor</b> - Optional. Also known as "fragment" or colloquially as
|
||||
* "hash". You can specify an anchor for a result.</li>
|
||||
* </ul>
|
||||
*
|
||||
* <p>
|
||||
@@ -86,6 +86,10 @@ import com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler;
|
||||
*
|
||||
* <pre>
|
||||
* <!-- START SNIPPET: example -->
|
||||
* <!--
|
||||
* The redirect URL generated will be:
|
||||
* /foo.jsp#FRAGMENT
|
||||
* -->
|
||||
* <result name="success" type="redirect">
|
||||
* <param name="location">foo.jsp</param>
|
||||
* <param name="parse">false</param>
|
||||
|
||||
Reference in New Issue
Block a user