Java Reference
In-Depth Information
Note Don't include the all-in-one jar (spring.jar) as it will throw java.lang.NoClassDefFoundError:
Server Configuration
Modify the web.xml file generated by Eclipse with the code in Listing 4-11, to use the
Spring DispatchServlet.
Listing 4-11. The web.xml file
<?xml version="1.0" encoding="utf-8"?>
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
<web-app xmlns="" version="2.5">
Create the dispatcher-servlet.xml file in your /WEB-inf/ directory with the code from
Listing 4-12. The viewResolver bean allows you to swap out rendering models without
tying you to a specific view technology.
Search WWH ::

Custom Search