Results 1 to 2 of 2

Thread: Spring-MVC-step-by-step

  1. #1
    Join Date
    Oct 2005
    Posts
    1

    Default Spring-MVC-step-by-step

    Hi All,
    I just started working on Spring frame work.I found step-by-step
    tutorial by Thomas Risberg(http://www.springframework.org/docs/...p-by-step.html)
    while searching in the google. I was easily able to run the examples in Part-1,but i got some JSTL related issues in part-2. In part-2 at step 14 it was complaining about
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

    it did not find http://java.sun.com/jstl/core.
    I got rid of this error by copying the c.tld and
    fmt.tld in WEB-INF directory and also configuring
    the web.xml
    (added <taglib>
    <taglib-uri/WEB-INF/c.tld</taglib-uri>
    <taglib-location/WEB-INF/c.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri/WEB-INF/fmt.tld</taglib-uri>
    <taglib-location/WEB-INF/fmt.tld</taglib-location>
    </taglib>
    )

    but in step-15 – Decouple the view and the controller i got the following error

    javax.servlet.ServletException: Error occured during request processing:
    javax/servlet/jsp/jstl/fmt/LocalizationContext
    org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:724)
    org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:625)
    Iam downloaded all the software versions same as Thomas Risberg has Used

    Could anybody tell if iam doing anything doing wrong?



    Thanks
    Sandi

  2. #2
    Join Date
    Jul 2005
    Location
    COIMBATORE-INDIA
    Posts
    110

    Wink

    hai sandi
    Try to add jstl.jar and standard.jar in the application lib folder.Then what IDE r u using.IF Nitrox try to remove the version in <web-app> tag in web.xml.

    add the doctype properly in the xml.

    All the best
    Aniesh U.K
    Have a Nice day

Posting Permissions

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