Car Store

This page was originally written in Portuguese. Read the original.

Car Store is a video lesson track I created for my students: a Java Web application, built from scratch, to register and manage cars.

Throughout the labs, you will:

  • create the project with Maven and run the application on an embedded Tomcat;
  • receive HTML form data in Servlets and display it with JSP;
  • store the data in an H2 database and implement the four CRUD operations;
  • set up a connection pool with Apache Commons DBCP;
  • implement login and logout, with a filter that protects the pages.

Each lab brings the written step-by-step guide and the matching video lesson (in Portuguese). Follow them in order: each one builds on the code from the previous one.

Labs

  1. Lab 1: Creating the application

    This lab presents the basic concepts for creating a Web application with Java.

  2. Lab 2: Creating the INSERT method and setting up the database connection

    This lab presents the basic concepts for creating a Java Web application with a data persistence layer!

  3. Lab 3: Creating the SELECT method

    This lab presents the basic steps to create a query layer in the data persistence layer!

  4. Lab 4: Creating the DELETE method

    This lab aims to present a basic way to delete data from a database table!

  5. Lab 5: Creating the UPDATE method

    This lab aims to present a basic way to update data in a database table!

  6. Lab 6: Setting up the connection pool

    This lab aims to present a basic way to set up a connection pool to manage the database connections!

  7. Lab 7: Creating the login feature

    This lab aims to present a basic way to implement a login feature with username and password!