Environment Used JDK 6 (Java SE 6) (To install JDK – Windows , Ubuntu) Eclipse Indigo IDE for Java EE Developers (3.7.1) (To install Eclipse, refer this page) Apache Tomcat 6.x (To install [...]
Project Description In the previous Servlet example, we configured datasource in Apache Tomcat and used JNDI look up. This Servlet example explains how to configure datasource in Apache Tomcat [...]
Post/Redirect/Get (PRG) Pattern Post/Redirect/Get (PRG) is a web development design pattern that prevents some duplicate form submissions, creating a more intuitive interface for users. When a [...]
Java Database Connectivity (JDBC) is a Java-based data access technology that defines how a client may access a database. It provides methods for querying and updating data in a database. The [...]
Please go through this post (for beginners) before referring our JDBC examples to understand better. Download and Install Databases Depending on your requirement you may use any database. We show [...]
Project Description This JDBC example demonstrates how to retrieve a row from a database table. We use an ‘Employee’ table created in MySQL and retrieve a particular employee record [...]
Project Description This JDBC example explains how to retrieve all rows from a MySQL database table. We use an ‘Employee’ table created in MySQL and retrieve all employee details. We [...]
Project Description: This JDBC example explains how to create a new database in MySQL. As a best practice, we use Singleton (for making database connection), Data Access Object (DAO) patterns and [...]
Project Description This example explains how to write an application using Servlet and JSP which uses pagination to display the results. This application uses one table Employee and displays [...]