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

portlet dispatching after action phase renders in wrong namespace

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.3
    • Component/s: Plugin - Portlet
    • Labels:
      None
    • Flags:
      Patch

      Description

      when using the 'dispatcher' result (PortletResult) in the action phase the actual dispatching is postponed to render phase.. the problem with this is that links not explicitly stating the namespace get rendered with the default namespace (<s:url action="someAction" /> is simply 'someAction' instead of 'currentNamespace/someAction') - of course it would be best to simply use 'redirect' in the action phase. but this won't work for validation

      this could be easily workarounded by invoking the action: invocation.getProxy().getNamespace() + "/renderDirect" instead of just "renderDirect" - since most packages are extending "struts-portlet-default" the action should be inherited .. and the default namespace for URLs is now the current one ..

        Attachments

        1. portlet-result-namespace.patch
          0.7 kB
          Herbert Poul

          Activity

            People

            • Assignee:
              rainerh Rainer Hermanns
              Reporter:
              kahless Herbert Poul
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: