Speaker Topics - No Fluff Just Stuff

Developing Web Applications with Spring MVC

Although Spring's rise to ubiquity was driven by its IoC and AOP services, it offers so much more. One of the most powerful of these services is Spring's MVC framework.

If you are familiar with other Java web frameworks such as Struts or WebWork, you will recognize that Spring MVC is a similar request-response web framework driven by a Front Controller, in this case the DispatcherServlet. But Spring also provides considerable functionality out of the box. One of the beauties of the Spring MVC is that, like the rest of Spring, all of its components are quite modular. This allows you to mix and match different implementations of the various MVC components as you see fit for you application.

In addition, Spring MVC provides rich capabilities for data binding. This allows you to transparently bind form parameters to your application objects without having to create any intermediate objects. Spring's validation features allow you to capture both binding and application errors. And with Spring 2.0's much improved JSP tag library, both creating forms and displaying validation errors is quite simple.

In this session we will cover:

  • A quick overview of Spring for first time Spring users
  • Configuring Spring's DispatcherServlet
  • Wiring other application beans to web application beans
  • Mapping requests to Spring Controllers
  • Spring's different Controller implementations, and when they should be used
  • Validation form parameters and binding them to application objects
  • Creating forms using Spring's custom JSP tags library

About Ryan Breidenbach

Ryan Breidenbach has been developing software for over eight years with a current focus on enterprise Java applications and agile development. He is the co-author of Spring in Action. When he is not home spending time with his family, he can occasionally be found honing his skills at the poker tables.

More About Ryan »