Uploaded image for project: 'Commons EL'
  1. Commons EL
  2. EL-11

[el] VariableResolverImpl is ignorant of the implicit variables 'request' and 'response'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Nightly Builds
    • 1.1
    • None
    • Operating System: other
      Platform: Other

    • 37592

    Description

      I refer you to JSP.8.8 of the JSP 2.0 FR spec (and also of the JSP 2.1 draft),
      where INSTEAD OF the implicit 'pageContext' object, there are meant to be
      'request' and 'response' implicit objects.

      This isn't working for me with tag files produced by some version of Jasper/EL
      embedded in Sun Java System Application Server 8 (specifically, when I invoke a
      function like '${f:myFunction(request)}' from a tag file, a null pointer is
      passed to the function). From a fairly quick read of the current source, it
      would appear that the call-stack initiated by
      org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(...) ultimately
      defers to org.apache.commons.el.VariableResolverImpl to discover implicit
      objects used in an expression.

      And VariableResolverImpl simply doesn't know about 'request' and 'response'.
      Notice also that – when invoked in the context of a Tag file – it shouldn't
      know about 'pageContext' either.

      http://cvs.apache.org/viewcvs.cgi/jakarta-commons/el/src/java/org/apache/commons/el/VariableResolverImpl.java?rev=1.3&view=markup

      As to whether the Jasper crowd are using Commons EL correctly or not, I'm not to
      judge, but it does seem to me that the EL layer should get the heads up first.

      have fun,
      David.

      My own keywords: Jasper EL tag file tagfile implicit variable variables request
      response pageContext NullPointerException JSP expression evaluate null

      Attachments

        1. EL-11.patch
          0.7 kB
          Henri Yandell

        Activity

          People

            Unassigned Unassigned
            db@dawnbreaks.net David Bullock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: