Pluto
  1. Pluto
  2. PLUTO-120

portlet:namespace fails inside JSTL c:set

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1-rc3, 1.1.0-alpha1
    • Fix Version/s: 1.0.1, 1.1.0-alpha1
    • Labels:
      None
    • Environment:
      Win2000, Tomcat 5.0.28, JSTL 1.0 reference implementation

      Description

      <c:set var="ns"><portlet:namespace /></c:set>

      results in:

      Nested Exception is javax.servlet.jsp.JspException: namespace Tag Exception: cannot write to the output writer.
      at org.apache.pluto.tags.NamespaceTag.doStartTag(NamespaceTag.java:54)
      at org.apache.jsp.jsrportlets.md.view_jsp._jspx_meth_portlet_namespace_0(view_jsp.java:557)
      ...

      Whereas putting this in the JSP:

      <c:set var="ns"><%= ((javax.portlet.RenderResponse)request.getAttribute("javax.portlet.response")).getNamespace() %></c:set>

      works fine.

      I don't see a relevant open or closed bug in the taglibs bugzilla, so I'm logging this here.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Derek Richardson
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development