This is a simple bookstore web application developed using the Struts 2 framework. It allows users to perform CRUD operations on a collection of books stored in a MySQL database.
- View a list of books
- Add a new book
- Edit an existing book
- Delete a book
- Struts 2
- JSP (JavaServer Pages)
- JDBC (Java Database Connectivity)
- MySQL
- Maven
src/main/java
: Contains Java source files for action classes, models, and DAOs.src/main/resources
: Contains Struts configuration file (struts.xml
) and any other configuration files.src/main/webapp
: Contains JSP files, CSS, JavaScript, and other web resources.pom.xml
: Maven project configuration file.
Before running the application, ensure you have the following installed:
- Apache Tomcat (or any servlet container)
- MySQL Database
- Java Development Kit (JDK)
- Maven
- Configure your database connection settings in
src/main/resources/db.properties
. - Ensure that your MySQL server is running.
- Deploy the application to your servlet container (e.g., Tomcat) using Maven.
- Access the application through your web browser:
http://localhost:8080/bookstore-struts2-jdbc-1.0/bookList
. - You can view the list of books, add new books, edit existing books, and delete books through the provided interface.
To contribute to the development of this project, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push your changes to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Harshal Patil