How mishravaibhavn-tech/foundit works
FoundIt is a web application for reporting lost and found items, browsing listings, submitting claims, and letting item owners review them. The user flow runs from browser pages and JavaScript requests through authentication, item, and claim servlets to MySQL; database initialization creates the application tables. The sampled source supports the browser-to-servlet calls and servlet-to-database dependencies shown here. Claims and account features are represented from sampled servlet behavior; the HTML page wiring was not excerpted.
Main entry points: DBConnection.java DB connection · app.js Request helpers · AuthServlet.java Authentication · DbInit.java Schema setup
Components 10
Web interface
- App pages
FoundItApp/WebContent - Request helpers
FoundItApp/WebContent/js/app.js
Application services
- Authentication
FoundItApp/src/main/java/com/foundit/AuthServlet.java - Password hashing
FoundItApp/src/main/java/com/foundit/PasswordUtil.java - Item listings
FoundItApp/src/main/java/com/foundit/ItemServlet.java - Claim workflow
FoundItApp/src/main/java/com/foundit/ClaimServlet.java
Persistence
- Schema setup
FoundItApp/src/main/java/com/foundit/DbInit.java - DB connection
FoundItApp/src/main/java/com/foundit/DBConnection.java - MySQL database
Other components
- User
Connections 12
- User → App pages: uses
- App pages → Request helpers: loads
- Request helpers → Authentication: requests
FoundItApp/WebContent/js/app.js - Request helpers → Item listings: requests
- Request helpers → Claim workflow: requests
- Authentication → Password hashing: hashes passwords
FoundItApp/src/main/java/com/foundit/AuthServlet.java - Authentication → DB connection: opens connection
FoundItApp/src/main/java/com/foundit/AuthServlet.java - Item listings → DB connection: opens connection
FoundItApp/src/main/java/com/foundit/ItemServlet.java - Claim workflow → DB connection: opens connection
FoundItApp/src/main/java/com/foundit/ClaimServlet.java - Schema setup → DB connection: opens connection
FoundItApp/src/main/java/com/foundit/DbInit.java - DB connection → MySQL database: connects
FoundItApp/src/main/java/com/foundit/DBConnection.java - Schema setup → MySQL database: creates schema
FoundItApp/src/main/java/com/foundit/DbInit.java