This is a Java web application built using Struts2, JSP, and MySQL. It is containerized using Docker with an official Tomcat 8 image.
E:\Project\Languages\HTML\New folder\web
│
├── jsp/
│ ├── index.html
│ ├── LoginSuccess.jsp
│ └── registration.jsp
│
├── META-INF/
│ └── context.xml
│
├── WEB-INF/
│ ├── web.xml
│ ├── classes/
│ │ ├── struts.xml
│ │ └── com/rgpv/action/LoginAction.class
│ └── lib/
│ ├── commons-logging-1.0.4.jar
│ ├── freemarker-2.3.8.jar
│ ├── mysql-connector-java-5.1.45-bin.jar
│ ├── ognl-2.6.11.jar
│ ├── struts-taglib-1.3.5.jar
│ ├── struts2-core-2.0.14.jar
│ └── xwork-2.0.7.jar
│
├── .gitignore
├── Dockerfile
└── README.md
- User registration and login system
- JSP-based front-end
- Struts2 action handling (
LoginAction) - MySQL database connectivity
- Fully containerized with Docker for easy deployment
- Docker
- Java JDK 8 (if building locally)
- MySQL database setup
- Build Docker image:
docker build -t my-struts-app .- Run the container:
docker run -d --name my-struts-container -p 8080:8080 my-struts-app- Open your browser and navigate to:
http://localhost:8080
- Database connection details can be set in
context.xml. - Struts2 actions and mappings are in
WEB-INF/classes/struts.xml.
- Struts2 Core (
struts2-core-2.0.14.jar) - Struts Taglib (
struts-taglib-1.3.5.jar) - OGNL (
ognl-2.6.11.jar) - FreeMarker (
freemarker-2.3.8.jar) - MySQL Connector (
mysql-connector-java-5.1.45-bin.jar) - Commons Logging (
commons-logging-1.0.4.jar) - XWork (
xwork-2.0.7.jar)
This project is licensed under the MIT License. See the LICENSE file for details.