Chapter 19. Servlets and JavaServer PagesBest Practices


Chapter 19. Servlets and JavaServer Pages”Best Practices

In This Chapter

  • What Is the MVC Pattern?

  • The MVC Model with Servlets and JSPs

  • A Simple Example: Login Management

In the preceding chapters, you saw servlets and JavaServer Pages in action. From a purely technical level, they are essentially interchangeable technologies. However, the intended developer for each technology is vastly different. How can you best leverage the skill sets inherent in Java programmers and HTML programmers? Common design patterns used in computer science are easily applicable to this problem. The most directly applicable pattern is the Model-View-Controller (MVC) pattern, which helps to delineate responsibilities between the presentation layer (usually the JSP) and the back-end model or, in J2EE, often an Enterprise JavaBean. The view is handled by a JSP working in concert with a controller that is a servlet. It is this pattern that we will focus on as part of our discussion of servlet and JSP best practices.



BEA WebLogic Platform 7
BEA WebLogic Platform 7
ISBN: 0789727129
EAN: 2147483647
Year: 2003
Pages: 360

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net