O'Reilly logo

Advanced JavaServer Pages™ by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. DESIGN

Topics in this Chapter

  • Model 1

  • Model 2: An MVC Approach

  • A Model 2 Example

    • The Beans

    • The Deployment Descriptor

    • Successful Login Use Case

    • Creating a New Account

  • Conclusion

Developing web pages in HTML is easy. Designing flexible and maintainable web applications that combine HTML, JSP, and Java and access databases or legacy systems is not. This chapter provides insights into the use of JSP, beans, and servlets the latter by examining some common approaches to web application design.

The authors of the JSP specification designed JSP to be flexible. You can implement JSP-based web applications in many ways; for example, you can approach the project as follows:

  • Freely mix HTML and JSP scriptlets

  • Delegate functionality to Java beans

  • Use servlets, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required