Results 1 to 7 of 7

Thread: Expression Language not supported in compile time attribute value

  1. #1
    Join Date
    Dec 2005
    Posts
    1

    Default Expression Language not supported in compile time attribute value

    Hello Group,

    I am very new to Spring Framework. I am trying to use 'Developing a Spring Framework MVC application step-by-step' guide. I am using all the instructions specified in the guide (at least I think....), but in step 14, where I change hello.jsp to show value for 'now' passed from SpringappController.java, I am getting an 'Expression Language not supported in compile time attribute value' error. I am not sure what I am missing. I have included standard.jar and jstl.jar files in WEB-INF/lib directory. But I am still getting this error.

    Please help me out. I am really feeling frustrated at this point nd really need some help.

    Thank you to all of you,

    Anu

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    This first of all has absolutely nothing to do with Spring, it's something in your particular Servlet/JSP environment that is giving the error.

    You need to give more details about what environment you're running in, including versions of the server. Lookinng at this thread, where the user was running the Oracle app server, they had the same error messge (when trying to precompile JSPs) when their servlet/jsp jars were not up to date:
    http://forums.oracle.com/forums/thre...5412&tstart=15

    Regards,
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

  3. #3
    Join Date
    Mar 2006
    Posts
    2

    Default

    I encountered the same problem as abagde.
    The source of the problem was: I used a servlet 2.4 deployment descriptor (opposed to what is done in the tutorial where a servlet 2.3 descriptor is used). This in turn enables the JSP 2.0 machinery with the built-in EL which doesn't mix too well with JSTL 1.0.
    So, the solutions at hand are:
    • use a 2.3 deployment descriptor, or
    • include JSTL 1.1 by changing the taglib-URIs in include.jsp from
      <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
      <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
      to
      <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
      <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>


    Regards
    mks

  4. #4

    Default Same problem

    Hi all,

    I think I'm having the same problem. I've been trying to pre-compile jsp files containing EL and some Spring tags with Jasper2, but I always get NullPointerException. Not sure where the error comes from, but I'm able to deploy it on Jboss 4.0.2 (without pre-compiled).

    Anyone, please tell me what should I do?

    Thanks

  5. #5
    Join Date
    Jan 2007
    Posts
    2

    Default

    Quote Originally Posted by mks99 View Post
    • <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
      <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    That fixed my issue. Thanks!

  6. #6
    Join Date
    Jan 2007
    Posts
    22

    Talking This helped me too!

    Just in case you ever wondered if people really do scan forums for answers to their questions I am here to tell you YES!

    I was having this very same problem for over a day. This is exactly what I needed to fix my problem.

    Thanks so much.

  7. #7

    Default This helped me too

    Just in case you ever wondered if people really do scan forums for answers to their questions, even years later... I am here to tell you YES!

    I was having this very same problem for over a day. This is exactly what I needed to fix my problem.

    Thanks so much.

Posting Permissions

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