that create graphical bars. If we do not

that create graphical bars. If we do not have that functionality in the HTML class then we would have to create it. However, there might be other applications using graphical bars that will be favored by this code that they can later reuse the functions. As we can see, no change at all is needed in the logic layer. Presentation and logic are therefore independent. Case 2: Prevent the User from Voting Multiple Times This will imply a change to the logic. We can use cookies to prevent users for voting twice in the same poll. Advanced users can delete the cookies but we can live with that. Once this is decided, we just add the use of cookies and the controls to the logic layer of our application. These changes will not impact on the content or presentation layers. Case 3: A Flash Version The design team strikes again: they now want to present the whole application using nice Flash animations with sound, graphics, and dancing bears. Then we can just create a Flash class that will have the same interface as the HTML class and implement each method of the HTML class using PHP Flash functions. We do not have to change anything else there, but we have a Flash polls application. See Chapter 25 for examples of PHP’s Flash functions. Page 540

Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak jsp web hosting provider

Comments are closed.