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

Portlet session APPLICATION_SCOPE does not work between two portlet communication.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1.2
    • Fix Version/s: None
    • Component/s: Plugin - Portlet
    • Labels:
      None
    • Environment:

      Windows XP, Jetspeed 2.1.3, JDK 1.5_10, Eclipse 3.3.1

    • Flags:
      Important

      Description

      I was try to change the portlet example checking interportlet communication and found it is not work. For example:
      In first portlet action source:

      PortletActionContext.getRequest().getPortletSession()
      .setAttribute(ExchangeDispatcher.QUERY_NAME_SEARCH,
      getSearchQuery(),
      PortletSession.APPLICATION_SCOPE);
      and in second portlet action source:

      String query = (String) PortletActionContext.getRequest()
      .getPortletSession()
      .getAttribute(ExchangeDispatcher.QUERY_NAME_SEARCH,
      PortletSession.APPLICATION_SCOPE);

      In first portlet this session object are available.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexander.leonov Alexander Leonov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: