Skip to content
No description or website provided.
Pull request Compare This branch is 47 commits ahead, 298 commits behind aerogear:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
aerogear-controller-demo
aerogear-controller
.gitignore
README.md

README.md

aerogear-controller POC

This is a proof-of-concept on having a very simple mvc controller built on top of resteasy.

how it works

Just by returning a View instance, you can trigger page dispatch:

@Path("/welcome")
@GET
public View anyMethodName() {
    return new View("/WEB-INF/pages/somepage.jsp");
}

You can pass "model" objects to the view as well:

return new View("…/.jsp", new Car());

Then access it from the JSP page, for example:

<h1>${car}</h1>

credits / attribution

mildly inspired by htmleasy and has some code extracted from VRaptor.

Something went wrong with that request. Please try again.