Posted By:
Nick_Maiorano
Posted On:
Monday, December 22, 2003 08:24 AM
Phil,
The first thing you need to do is to read the classic book: design patterns. This is the book that started the whole design pattern concept. All others, such as the J2EE design patterns, are simply derivatives built upon the classic book.
You will probably end up using some form of the MVC design pattern for your web page but more importantly, you need to address the if...else structure that is really contrary to object oriented designs. Look into the strategy pattern or the command pattern to replace the big block of if...else statements with an abstract class that lets subclasses handle specific logic. Each subclass handles one specific if case. More details in the book...
Note: the MVC pattern is a pattern that gained popularity with the advent of the web-based applications. This book was published in 1995 and unfortunately, the MVC pattern was not included in the design patterns book.