Announcement Announcement Module
Collapse
No announcement yet.
EL Expressions are not resolved in my JSPs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EL Expressions are not resolved in my JSPs

    Has anybody experienced the problem that EL expressions like ${message} do not get evaluated, but are treated like normal characters, when they are used as a view inside a controller?

    example jsp:

    Code:
    <%@ taglib uri="/tags/c" prefix="c"%>
    <html>
    <body>
    	<div style="color&#58;red">$&#123;errorMessage&#125;</div>
    	<form method="post" action="loginSimpleformChooser.do">
    		<input type="text" name="userName">
    		<input type="text" name="password">
    		<input type="submit">
    	</form>
    </body>
    </html>
    I am using Gaijin Studio on Tomcat with the newest Spring release.

    [/code]

  • #2
    Check the version of the Servlet Specification you are targeting.
    You web.xml needs to have a header like
    Code:
    <web-app version="2.4"
      xmlns="http&#58;//java.sun.com/xml/ns/j2ee"
      xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"
      xsi&#58;schemaLocation="http&#58;//java.sun.com/xml/ns/j2ee http&#58;//java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    HTH

    Comment

    Working...
    X