Announcement Announcement Module
Collapse
No announcement yet.
Expression Language not supported in compile time attribute value Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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,

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          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!

          Comment


          • #6
            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.

            Comment


            • #7
              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.

              Comment

              Working...
              X