MVC
MVC

Let's build a Java EE web application!

Servlets & JSPs?

JSF?

JSF Performance

JSF Performance

WildFly 8 benchmarked

JAX-RS?

Restful Websites?

Once upon a time there was a survey...

Goals

  • Leverage existing Java EE technologies
  • Integrate with CDI and Bean Validation
  • Define a solid core to build MVC applications without necessarily supporting all the features in its first version
  • Explore layering on top of JAX-RS for the purpose of re-using its matching and binding layers
  • Provide built-in support for JSPs and Facelets view languages

Non Goals

  • Define a new view (template) language and processor
  • Support standalone implementations of MVC running outside of Java EE
  • Support REST services not based on JAX-RS
  • Provide built-in support for view languages that are not part of Java EE

The Problem

Ozark Contribution

Hello Controller


@Path("hello")
public class HelloController {

  @Inject
  private User user;

  @GET
  @Controller
  public String hello(@QueryParam("name") String name) {
      user.setName(name);
      return "hello.jsp";
  }

}
      

Why?

Business4Experts on IE8
Business4Experts on IE8
Client-Server

SEO

WhatsApp

REST vs JSON-API

From PrettyFaces
to UIRouter

  • Browser as Runtime
  • No Forward, Back, Refresh
  • No Linking
  • One URI

Complexity

Read also:
Command-line tools can be 235x faster
than your Hadoop cluster

Hello Angular

Workspace Download Config
angular2-webpack-starter 266 MB 2,2 MB 784 loc
angular2-webpack 419 MB 13,8 MB 603 loc
angular2-minimalist-starter 197 MB ? 627 loc

Performance

Thanks