How profpantoja/bananabacana works
Project type and purpose
• From the README (“Aplicação base para a criação de um Dynamic Web Project em Java usando o Eclipse…”) and the presence of JSP pages, servlets (controller classes), DAOs, models, web.xml, CSS and image folders, we see this is a classic Java EE–style Dynamic Web Project.
• Its purpose is educational: a simple MVC example to learn Java Web development using JSP/Servlet, JDBC/MySQL and Eclipse.
File structure
• Top-level directories:
• WebContent/ — holds presentation artifacts (JSPs, CSS, images, web.xml)
• src/banana/controller — servlet classes (Del.java, Teste.java)
• src/banana/dao — data-access layer (MySqlConnection.java, ProdutoDao.java)
• src/banana/model — business model (Produto.java)
• Configuration: WebContent/WEB-INF/web.xml defines servlet mappings.
• Static resources: WebContent/css/bananaStyle.css, WebContent/img/
Putting it all together
• Inside:
– JSP views (WebContent/*.jsp)
– Controllers (src/banana/controller/*.java)
– DAOs & Model classes (src/banana/dao & src/banana/model)
• Outside:
– Static resources folder (CSS/IMG) feeding into JSP
1. Client → JSP or Controller
2. Controller → DAO → Database → DAO → Controller
3. Controller → JSP → Client