Uploaded image for project: 'Portals Bridges'
  1. Portals Bridges
  2. PB-59

Struts bridge: render phase of portlet doesn't remove the attr RENDER_CONTEXT from the portlet session

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.0.3
    • Component/s: struts
    • Labels:
      None
    • Environment:
      tomcat 5.5.17, exo-portlet-container

      Description

      After the action phase, where set attribute RENDER_CONTEXT in the portlet session, the render phase doesn't remove the attribute RENDER_CONTEXT in the portlet session, because the pageURL == null .
      Why it hapens?
      code:
      String pageURL = getStrutsPageURL(request);

      Otherwise, in StrutsPortlet.processRequest the code portletSession.removeAttribute(RENDER_CONTEXT)
      must be achieved whether pageURL null or not.

      In the method StrutsPortlet.processRequest need to change the code:
      ===\/=\/=\/======
      if (pageURL == null)
      path = defaultPage;
      else
      {
      path = pageURL;

      ===/\=/\=/\======

      with the code:
      ===\/=\/=\/======
      if (pageURL == null)
      path = defaultPage;
      else
      path = pageURL;
      ===/\=/\=/\======

        Attachments

          Activity

            People

            • Assignee:
              adouma Ate Douma
              Reporter:
              exoman Alexey Zavizionov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: