Spring MVC

Print the objectives

  Take a beta test

The objectives of the Spring MVC exam are:

  • To understand the request lifecycle and how this reflects on the different Spring MVC components
  • Knowing how all the Spring MVC components can be wired together and customized
  • To be able to implement the J2EE standard view technology JSP in combination with JSTL
  • To understand how I18N is handled
  • And finally, when things get going wrong, knowing how to handle exceptions

The objectives relate to the Spring reference manual chapter 13 and 14. For chapter 14, which covers the view technologies, only questions related to JSTL and JSP will be asked.

References:

  • http://www.springframework.org/docs/reference/mvc.html
  • http://www.springframework.org/docs/reference/view.html
  • http://static.springframework.org/spring/docs/2.5.x/reference/mvc.html
  • Professional Java Development with the Spring Framework, Wiley, 2006
  • Spring in Action, Manning, 2005
  Released  Beta  Frozen  

Request lifecycle

 
 

DispatcherServlet  3 questions

  • Recognize the role of the DispatcherServlet.
  • Demonstrate how to configure the DispatcherServlet.
  • Demonstrate understanding of the functionality of the WebApplicationContext.
  • Describe the functionality of the Dispatcher Servlet's special beans, e.g. MultiPartResolver, ThemeResolver, LocaleResover.
9 24 2

Controller  3 questions

  • Explain the role of Controllers in Spring MVC.
  • Identify various existing implementations of the Controller interface and their purpose, eg. MultiActionController, Command Controllers.s.
  • Show how to configure controllers in the Spring wiring configuration file
  • Demonstrate how to implement a controller.
2 28 1

Handler mappings  3 questions

  • Describe how the define HandlerMappings.
  • Describe how to set up HandlerInterceptors.
  • Explain what the HandlerExecutionChain is.
3 26 0

Views and resolving them  3 questions

  • Demonstrate how to configure and use ViewResolvers.
  • Explain when and how to create a custom View.
  • Describe how request redirecting and forwarding is handled.
  • Describe the ViewResolvers that come with Spring, i.e. UrlBasedViewResolver, XmlViewResolver.
  • Explain how the ViewResolverChaining works.
3 21 1

ModelAndView  1 question

  • Understand what is the role of the model and view in the MVC design pattern.
  • Identify the best practices of filling model with data in order to provide fine separation between view and business logic.
  • Demonstrate various controller's helper methods returning both ModelAndView and particular view Strings.
1 7 2

Parameter binding  4 questions

  • Understand how Spring binds web parameters to your business objects and provide validation and error handling at the same time.
  • Know which default binders are being used, how to plug in extra, and how to built your own.
  • Understand the default built-in validation mechanism.
  • Know which role property editors play
  • Know how to use the spring form tag library and how it can be used to bind the values of a Command object to a HTML form and display binding errors.
1 37 2

Bean Configuration  2 questions

  • Explain how Spring configuration works in general using the Spring application context and the web.xml file.
0 10 5

Tag libraries  1 question

0 1 5

I18N  2 questions

  • Understand how Spring MVC supports I18N and identify its main components.
  • Know how to retrieve the locale from the request and so lookup a Locale-aware message.
  • Know how to store Locales and how they can be changed at runtime.
  • Understand its ResourceBundle support.

0 7 1

Exception handling  2 questions

  • Understand how the exception handling mechanism works.
  • Know how to extend the built-in exception handlers and how to write your own.
2 2 1

Annotation-based controller configuration  4 questions

  • Understand how to modify your configuration in order to enable annotations
  • Define a controller and handler methods
  • Define the binding of request parameters to method parameters
  • Store attributes in a session
3 14 0

Spring MVC in general  1 question

  • Demonstrate understanding of the purpose of Spring MVC.
  • Identify common design pattern that are used by Spring MVC.
  • Show knowledge of supporting classes of the Spring MVC framework, e.g. WebApplicationSupport, DelegatingFilterProxy.
1 6 2

Exam information

  • 43 minutes
  • 29 questions (230)
  • 75% required
  • +3 √
  • - 12  points
  • 15 day delay
  • status: beta

Exam leader