Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring and JSP EL not being processed
    text
    copied!<p>We are running Tomcat 6.0 with Spring 3.0.5 an for some reason we can not get the jsps to evaluate the ${blah}. This is a maven project with many separate modules if that matters, Eclipse Helios. </p> <p>Here is a snipped of my web.xml</p> <pre><code>&lt;web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt; &lt;display-name&gt;xc.rio&lt;/display-name&gt;... </code></pre> <p>And it isn't this (&lt;%@ page isELIgnored="false" %>) because when I put this in my jsp the page is rendered as text only meaning</p> <pre><code>&lt;%@ page isELIgnored="false" %&gt; &lt;HTML&gt; ...${blah}... </code></pre> <p>${2+2} is not evaluated. Also I have tried this on tomcat 7. =-(</p> <p>Update: I have done a standalone spring and nonspring app and EL works. I was thinking it had something to do with the viewResolver, but that isn't it either I guess.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context" xmlns:camel="http://camel.apache.org/schema/spring" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"&gt; &lt;mvc:annotation-driven /&gt; &lt;bean id="handlerMapping" class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"&gt; &lt;property name="detectHandlersInAncestorContexts" value="true" /&gt; &lt;/bean&gt; &lt;mvc:default-servlet-handler/&gt; &lt;bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt; &lt;property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/&gt; &lt;property name="suffix" value=".jsp"/&gt; &lt;/bean&gt; &lt;/beans&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload