Thursday, October 05, 2006

EL expression not evaluated! ${msg} appears as ${msg} in the output!

If your JSP is printing your ${whatever} el expressions as they are, verify that:


  1. You are using a JSP2.0 compliant servlet container.

  2. Your web.xml starting tag looks like this:

    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">



Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?