Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3652

Add example for "anchor" (aka "hash" or "fragment") to RedirectActionResult docs

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.8.1, 2.2.1.1, 2.2.3
    • Fix Version/s: 2.3.1
    • Component/s: Documentation
    • Labels:
      None

      Description

      The documentation for the Redirect Action Result fails to mention that an "anchor" parameter is possible. Here is the doc:
      http://struts.apache.org/2.2.3/docs/redirect-action-result.html

      Additionally, the is one more parameters technically supported by Redirect Action Result inherited from ServletRedirectResult: "parse" ( "location" is also inherited, but hidden by "actionName").

      The "Parameters" section might be amended with:

      • parse - boolean, true by default. If set to false, the actionName param will not be parsed for Ognl expressions
      • anchor - optional. Also known as "fragment" or colloquially as "hash." You can specify an anchor for a result.

      An example of usage should be added to the wiki / javadocs for the anchor param, perhaps to the existing example "gatherReportInfo" action.

      Lastly, since "anchor" is also used to refer to the <a> tag, I recommend that the documentation also include the more common terms "fragment" and "hash" as given above. This will enable folks searching for this functionality to find it quicker.

        Attachments

          Activity

            People

            • Assignee:
              maurizio.cucchiara Maurizio Cucchiara
              Reporter:
              rgm Roland McIntosh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: