Chapter 8. Annotation-driven development with Spring

This chapter covers

  • Spring Portlet MVC annotations
  • Dependency injection using JSR 330 and JSR 250
  • Validation using Spring Validation API and JSR 303
  • Using Spring’s form tag library
  • Localization and file upload support
  • Unit testing with Spring’s TestContext framework

In the previous chapter, you created Spring controllers and provided a HandlerMapping bean definition in the web application context XML file to map portlet requests to appropriate controllers. But wouldn’t it be easier if you could specify which portlet request is handled by a controller in the controller class itself? In this chapter, we’ll expand on the core concepts covered in the previous chapter and see how Spring’s ...

Get Portlets in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.