This is a web-based IoT device management and purchasing application developed using JSP, JavaBeans (MVC Model), Maven, and Jetty server.
- Java JDK 8 or higher installed
- Maven installed
- Internet connection to download Maven dependencies
- (Optional) IntelliJ IDEA, Eclipse, or VS Code for editing
-
Build the Project
In the project root directory (wherepom.xmlis located), run:mvn clean install
-
Run Using Maven Jetty Plugin
Start the Jetty server directly with:mvn jetty:run
-
Access the Application
Open your browser and visit:http://localhost:8080/
/src/main/java/model/ → JavaBeans (data models like User.java, Product.java, Order.java, etc.)
/src/main/resources/ → (reserved for config files if needed)
/src/main/webapp/ → Frontend files (JSP + assets)
/src/main/webapp/components/ → Reusable JSP components (header.jsp, footer.jsp)
/src/main/webapp/css/ → CSS files (e.g., styles.css)
/src/main/webapp/images/ → Image assets
/src/main/webapp/WEB-INF/ → Protected resources (web.xml, etc.)
/src/main/webapp/index.jsp → Landing page (Home)
/src/main/webapp/login.jsp → Login page
/src/main/webapp/logout.jsp → Logout page
/src/main/webapp/register.jsp → Registration page
/src/main/webapp/welcome.jsp → Welcome page
/pom.xml → Maven configuration file
/target/ → Compiled build output (generated automatically)
- Controllers: Handle HTTP requests (Servlets)
- Models: JavaBeans representing entities like User, Product, Order
- Views: JSP pages
| Task | Command |
|---|---|
| Clean project | mvn clean |
| Compile project | mvn compile |
| Package WAR file | mvn package |
| Run project | mvn jetty:run |
To stop Jetty server, simply press:
Ctrl + C in your terminal.
- Default server port: 8080
- If 8080 is already in use, you can change it by adding this to your
pom.xmlunder<configuration>:<httpConnector> <port>8090</port> </httpConnector>
- Java (JSP + Servlets)
- Maven
- Jetty Maven Plugin
- HTML/CSS (inside JSPs)
- MVC architecture
This project is for academic purposes.