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

Get Borland® JBuilder™ Developer’s Guide 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.