Skip to Main Content
Struts 2 in Action
book

Struts 2 in Action

by J. Scott Stanlick, Chad Michael Davis, Donald J. Brown
May 2008
Intermediate to advanced content levelIntermediate to advanced
424 pages
15h 59m
English
Manning Publications
Content preview from Struts 2 in Action

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

iBATIS in Action

iBATIS in Action

Brandon R. Goodin, Clinton Begin, Larry Meadors
PrimeFaces Cookbook

PrimeFaces Cookbook

Mert Caliskan, Oleg Varaksin

Publisher Resources

ISBN: 9781933988078Publisher SupportOtherPublisher WebsitePurchase Link