EL Or JSTL Not Working As Expected

March 20th, 2009

Applies to:
NA

Description:
Occurs while using EL or JSTL in JSP.

Cause:
Configuration mismatch between the version of JSP that you are using, the version of the JSTL that you employ, and how you have declared your web application in the deployment descriptor (web.xml).

admin JAVA-JSP

  1. admin
    March 20th, 2009 at 10:28 | #1

    For a JSP 2.0 container, you should be using JSTL 1.1, and you should have your web application declared as a Servlets 2.4 web app by using the Servlets 2.4 XML Schema.
    For a JSP 1.x container, you should be using JSTL 1.0, and you should have your web application declared as a Servlets 2.3 web app by using the Servlers 2.3 DOCTYPE. Note: even though you can use the Servlets 2.3 DOCTYPE with a JSP 2.0 container, this will put the container into “compatibility mode” and the the EL will be disabled on the JSP pages.

  1. No trackbacks yet.