O'Reilly logo

Struts 2 in Action by Scott Stanlick, Chad Michael Davis, Don Brown

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Exploring the validation framework

This chapter covers

  • Introducing the validation framework
  • Wiring your actions for validation
  • Building a custom validator
  • Adapting the validation framework to your needs

Building on the refinements we saw in the previous chapter, where we added Hibernate-based persistence and Spring resource management to our sample application, this chapter introduces another advanced mechanism of the Struts 2 Framework, the validation framework. We’ve had robust data validation in our Struts 2 Portfolio since chapter 3, where we learned how to implement an action-local form of validation with the Validateable interface’s validate() method. While this method works fine, it has some limitations that eventually become ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required