Skip to main content

Data Access Options for Web Applications

  • Chapter
Pro JSP 2
  • 417 Accesses

Summary

In this chapter, you’ve learned the basics of using JDBC in a simple JSP application, the advantages of using an object-relational persistence framework, and how to design a sophisticated data access architecture.

With your new knowledge of basic JDBC concepts, you should be able to add data access to simple JSP applications by using JDBC code in JSP pages or by using the JSTL SQL tags. You should be able to access any sort of database as long as it has a JDBC driver. In addition, you should also be able to configure a JDBC driver by using either the old data manager approach or the newer JNDI data source technique.

With your new knowledge of the concepts behind O/R persistence frameworks, you should be able to work with any of the frameworks available from commercial software vendors and from open-source projects. Your knowledge of one-, two-, and three-layer architectures as well as your understanding of the flexibility-complexity trade-off will help you choose the appropriate architecture for your next JSP application.

You’ve also taken a close look at a complete example JSP application, the RSS newsreader, which illustrates how to use an O/R persistence framework within a modular three-layer architecture. You can use the RSS newsreader example as a starting point for your own projects. The example relies only on open-source components that are free of charge and free for you to distribute with your own applications.

You should now have enough knowledge to evaluate database access technologies and to design and implement database access within your JSP applications.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.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). Data Access Options for Web Applications. In: Mukhar, K. (eds) Pro JSP 2. A-Press. https://doi.org/10.1007/978-1-4302-0111-3_9

Download citation

Publish with us

Policies and ethics