VRaptor

VRaptor 4 delivers high productivity to your Java Web applications on top of CDI. VRaptor is an opensource MVC framework with a large developers and users community.

Really simple!

This is your first logic on FirstController.java:

@Controller
public class FirstController {
  
    @Inject private Result result;

    @Get("/home")
    public void home() {
        result.include("message", "Hello, VRaptor 4!");
    }
}

And HTML file placed at WEB-INF/jsp/first/home.jsp:

<!DOCTYPE html>

<html>
  <head>
    <title>Home page</title>
  </head>
  <body>
    ${message}
  </body>
</html>

It is done! Now you may just access localhost:8080/home. See more examples on our documentation.

Reasons for using VRaptor