O'Reilly logo

Borland® JBuilder™ Developer’s Guide by Jeff Swisher, Saleem Siddiqui, Michael Landy

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

Design Guidelines

As I sat and thought about what to place in “Design Guidelines,” I could not decide where to stop. (Notice that I did not say where to begin.) Entire books are written on design patterns for J2EE implementation of which Struts is an implementation to facilitate usage of the specification. A number of important principles need to be addressed if you want to have a successful implementation of Struts.

Using Validation

The validate() method is called by the controller servlet after the bean properties have been populated, but before the corresponding action class’s perform() method is invoked. The validate() method has the following options:

 public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) ...

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