This is a simple web application built using Struts 1 for the presentation layer and Hibernate for data persistence. The application demonstrates basic CRUD (Create, Read, Update, Delete) operations.
- CRUD Operations with Struts1: Implemented full Create, Read, Update, and Delete (CRUD) operations using Struts1 framework to manage data flow and user interaction seamlessly.
- Reusable Components with Tiles: Utilized Apache Tiles for efficient layout management, allowing for reusable templates and consistent page structure across the application.
- Authentication: Implemented user authentication mechanisms to secure the application, ensuring only authorized users can access certain functionalities.
- Struts 1: MVC framework for the presentation layer.
- Hibernate: ORM framework for database interactions.
- MySQL: Relational database to store information.
- Jetty: Embedded server for running the application.
- Configure the Database
Create a MySQL database named demo and run the following SQL script from demo.sql.
- Configure Hibernate
Update the hibernate.cfg.xml file in the src/main/resources folder with your MySQL database connection details:
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/demo</property>
<property name="hibernate.connection.username">your-username</property>
<property name="hibernate.connection.password">your-password</property>
- Build the Project
mvn clean install -DskipTests
- Run Application
mvn jetty:run
- Access the Application
Open your browser and go to:
http://localhost:8080/demo-struts1/login.do
username : demo_test1
password : mypassword