How mikemelon/java-exam works
Project type and purpose
• This is a full-stack Java web application (“java-exam”) for online exams: question-bank editing, exam composition (fixed/random), online testing, scoring, statistics, user management and broadcasting messages.
• It uses JSP/Struts2 for presentation, Spring for wiring, Hibernate for persistence, Tomcat (with WebSocket) as the runtime, MySQL as the database.
File structure
• Top-level pom.xml, README.md, LICENSE, Maven standard src/ and resource directories.
• src/main/java: packages under cn.lynu.lyq.java_exam:
• actions: Struts2 Action classes (presentation layer/controllers)
• common, utils, filters, websocket: shared constants, filters, WebSocket server components
• dao + dao/impl: Hibernate DAOs (data access layer)
• entity: JPA/Hibernate entity classes (domain model)
• misc: chart renderers, test utilities
• test: unit/integration tests for charting, file generation, import, exam phases
• src/main/resources: Spring applicationContext.xml, Struts config (struts.xml), Log4j2, property files, SQL import scripts
• src/main/webapp: JSP views, JS/CSS assets (Materialize, jQuery, jOrgChart, Font Awesome), web.xml
• screenshots, _config.yml (GitHub Pages), .settings, .gitignore, Eclipse/Maven project files
README for additional insights
• Confirms MVC architecture: Struts2 + Spring + Hibernate.
• Outlines features (online exam, import data, user mgmt, search/stats, tree visualization, push messages).