Announcement Announcement Module
Collapse
No announcement yet.
potential bug in MVC step by step tutorial Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • potential bug in MVC step by step tutorial

    Wanted to post this so that it can be addressed in the next release. Looks like there might be a bug in the step by step tutorial that is distributed with the Spring framework. If you follow the tutorial through part 2, then you will start getting an error that says the following:

    12:48:54,890 ERROR [Engine] StandardWrapperValve[springapp]: Servlet.service() for servlet springapp threw exception
    org.apache.jasper.JasperException: /WEB-INF/jsp/hello.jsp(8,33) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    This is due to the fact that the tutorial instructs you to create an include.jsp with the following:

    Code:
    <%@ page session="false"%>
    <%@ taglib prefix="c" uri="http&#58;//java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http&#58;//java.sun.com/jstl/fmt" %>
    However, this imports the wrong version of the jstl. The fix for this is to insert "jsp" into the uri so that it would look like this:

    Code:
    <%@ page session="false"%>
    <%@ taglib prefix="c" uri="http&#58;//java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http&#58;//java.sun.com/jsp/jstl/fmt" %>
    At least, this was the case when running the test using JBoss 4.0, jdk 1.4.2 and Spring 1.1.5.

    Wanted to post this so that others who experience the same problem won't hunt around forever trying to figure it out.

    -Dan

  • #2
    potential bug in MVC step by step tutorial

    This is still a problem in May 2007. Not sure how to report this. Any ideas?

    Comment


    • #3
      You can use Spring JIRA: http://opensource.atlassian.com/proj...ing/browse/SPR

      Comment


      • #4
        Wanted to post this so that others who experience the same problem won't hunt around forever trying to figure it out.
        i have similar problem with this behaviour in tomcat 5.5 series
        and i wrote a thread about this months ago, asking the differences about of tag versions

        is normal i think, so the tutorial should has a advice of course

        regards

        Comment


        • #5
          Originally posted by dr_pompeii View Post
          i have similar problem with this behaviour in tomcat 5.5 series
          and i wrote a thread about this months ago, asking the differences about of tag versions

          is normal i think, so the tutorial should has a advice of course

          regards
          Just give us the thread URL. Is the discussion helpful in this matter?

          Comment


          • #6
            Hi.....
            Thanks a lot for your information about sun java.....
            it was really useful for me.....

            Comment


            • #7
              omg this is really cool

              Comment


              • #8
                potential bug in MVC step by step tutorial

                Originally Posted by dr_pompeii View Post
                i have similar problem with this behaviour in tomcat 5.5 series
                and i wrote a thread about this months ago, asking the differences about of tag versions

                is normal i think, so the tutorial should has a advice of course

                regards

                Comment

                Working...
                X