Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 724 Bytes

README.adoc

File metadata and controls

46 lines (31 loc) · 724 Bytes

MVC 1.0 Example

Pre requisites:

  • Java 8

  • Glassfish 4.1.1 [Download]

  • Maven 3.3.3

Build

---
./mvnw package
---

Deploy

Access to Glassfish Panel Control at http://localhost:4848

Build with Docker

Build your own docker image.

---
./mvnw package docker:build
---

Then, execute the command below and application will be running at http://<docker_host>:8080/javaee8-mvc

---
docker run --name mvc-example -p 8080:8080 adoptajsr/javaee8-mvc
---

Content

  • Models, Views and Controllers

  • Exception Handling

  • CSRF

  • Redirect and RedirectScoped

  • MVC Context