Results 1 to 2 of 2

Thread: EL Expressions are not resolved in my JSPs

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    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
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Replies: 6
    Last Post: Nov 30th, 2005, 04:21 AM
  2. Replies: 2
    Last Post: Jul 21st, 2005, 04:07 AM
  3. Replies: 1
    Last Post: Jun 9th, 2005, 08:37 AM
  4. Enabling Spring in ugly JSPs
    By jlindwall in forum Web
    Replies: 2
    Last Post: May 31st, 2005, 12:53 PM
  5. Spring AOP and JSPs
    By eoliphant in forum AOP
    Replies: 2
    Last Post: Aug 25th, 2004, 05:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •