O'Reilly logo

Learning Jakarta Struts 1.2: a concise and practical tutorial by Stephan Wiesner

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

6.3 Database

It is now time to look at the database. First we see how to store the records of an author in the database in the "traditional" way, and then we look at the possibilities Struts offers.

6.3.1 Database and JDBC

First thing to ask yourself is what gets stored in the database? Creating the Author class to be responsible for loading and storing itself should be simple enough and the implementation would be relatively simple and uncomplicated. Additionally, we could also make the Author responsible for its own presentation in the View layer. This is something we go into later, when we create the shopping cart in Chapter 10. We’ll discover some problems with the approach used in this chapter, so you should read Chapter 10 as well before you ...

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