Threaded View
-
06-05-2007 05:37 AM #1New Member
- Join Date
- May 2007
- Posts
- 11
Applying Design Patterns to Your Struts Validation Framework
In today's Web applications, friendly user input validations with obvious graphic alert images and warning messages have become standard. These input validation rules are defined based on business needs, which filter out any bad data input by users. This not only increases system stability, but also improves user experience. How can you add this type of validation to your Web application?
The popular Java Web MVC framework, Apache Struts, provides an ideal solution for validating form input. This article will show you how to use it through solving a practical validation scenario. You'll see two different implementation solutions: the first uses the traditional procedural programming method; the second demonstrates the object-oriented approach by way of Struts customized validation plug-in integration.
Hopefully, this comparison will show you how object-oriented design principles and design patterns-specifically, the strategy, factory, and singleton patterns, can be applied to Struts' customized form validation.
Similar Threads
-
Giving Struts help
By domain_monito in forum ProgrammingReplies: 0Last Post: 03-30-2007, 08:27 AM -
Web design, programming, logo design, banner design and graphic design
By DFTony in forum Services- Design, Tech, SEOReplies: 0Last Post: 11-10-2005, 06:51 AM


LinkBack URL
About LinkBacks




Reply With Quote