Skip to content

Adopt-a-JSR/javaee8-mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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