Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-44604

Reading namespace parameter in portlet action method

    Details

      Description

      I have a jsp file containing like
      <input id="<portlet:namespace/>param1" name="<portlet:namespace/>param1" value='hello'/>
      And i try to read as below in portlet action method
      request.getParameter(response.getNamespace() + "param1");

      it return null, but if i use request.getParameter("param1"); then it works fine.
      But according to JSR 286 spec request.getParameter(response.getNamespace() + "param1"); should work fine. (And this is how it works in weblogic and websphere).
      Note:requires-namespaced-parameters is not correct option here as we need to handle namespace parameters.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joel.garman Joel Garman
              Reporter:
              kalai kalaiselvam (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 6 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Alpha 1