Integrating Struts With Hibernate Through DAO Pattern
I have developed a simple CRUD (Create Read Update and Delete) application using
as web framework,
for ORM and
(Data Access Object) design pattern.
Follow the steps given below to run this sample application using
to extract it to C:\ drive so that
folder is created, which contains the project.
When you open the project using NetBeans, it complains about missing references as libraries are removed from the .rar file to make download small.
of the project and remove references to libraries using
node in project properties window. Select library and click on
Then add the following libraries to the project using
button as the case may be.
ojdbc14.jar for Oracle 10g
project to make sure you have compiled all classes properly.
the project. It starts Tomcat, if it is not already running.
Before you run project, create the following table in Oracle database in HR account.
create table subscribers ( email varchar(50) primary key, fullname varchar(50), dj date );
When you run the application, you get three options - List of Subscribers, Add New Subscriber and Delete Subscriber. List of subscribers displays the list of existing subscribers and allows you to modify the fullname of the subscriber using update form.