1 2 Previous Next 15 Replies Latest reply on Jan 18, 2011 8:12 AM by rraposa Go to original post
      • 15. RequestDispatcher query string
        rraposa

        I agree that the spec is not clear with how to treat EL expressions. From a practical point of view, if I have a render parameter:

         

        name1 = value1

         

        and I include/forward a JSP using:

         

        /my.jsp?name1=value3

         

        then the use case here is that I want to override name1, and I should not have to add business logic to my.jsp in order to display value3. I should be able to simply use:

         

        ${name1}

         

        But the output is value1, which in my interpretation means that the render parameter was not overridden by the query string parameter. But there is a fallacy in my logic that I haven't figured out yet, which is why I started this thread, and the answer I think has to do with how EL is implemented behind-the-scenes. Does anyone know how ${name1} gets evaluated? I looked at the generated servlet for my.jsp but it was no help.

        1 2 Previous Next