Skip to main content

Web-Application Design and Best Practices

  • Chapter
Pro JSP 2
  • 460 Accesses

Summary

This chapter covered several topics related to web-application design and best practices, bringing together many of the topics you explored in the previous chapters. First, we discussed why design is important and we recapped the two major architectures for building web applications: page-centric (Model 1)and Model-View-Controller (Model 2). Then we showed how design patterns can help you design your application and described how some of the Java EE patterns can be used to build web applications based on the MVC architecture. These patterns included the following:

  • Front controller

  • View

  • View Helper

  • Service to Worker

  • Filter

We then moved on to discuss some third-party frameworks such as Struts, WebWork, and Velocity.

After this, we showed how testing is an important part of web-application development and introduced unit testing and functional (or acceptance) testing. Automated testing has now really taken off with regard to web applications, and to illustrate this we discussed some of the testing tools that are now available. We then related testing back to the design aspects we presented earlier in the chapter by showing how the design of a web application can affect the ability to test it.

Finally, we covered some implementation topics, including logging, troubleshooting, and some general guidelines for building web applications.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Editor information

Kevin Mukhar

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Simon Brown, Sam Dalton, Daniel Jepp, Dave Johnson, Sing Li, and Matt Raible

About this chapter

Cite this chapter

(2005). Web-Application Design and Best Practices. In: Mukhar, K. (eds) Pro JSP 2. A-Press. https://doi.org/10.1007/978-1-4302-0111-3_14

Download citation

Publish with us

Policies and ethics