- The implementation must support model driven page render with at least one choice of template engines(JSP, FreeMarker,StringTemplate,Velocity,Mustache)
- The implementation must support parameterForm submit, including nested structure.
- The implementation must support service injection for controller, and must use your di container you finished last round(unless the loser who choose to use Guice)
- The implementation must support run in a embedded web container(Grizzly, Jetty or Tomcat)
- The support of web.xml is not mandatory
- Functioning properly, and robust.
- No other library apart from guava, xunit, testing tools, servlet api, container and the template engine you chose.
@route("/some")
class SomeController extends Controller{
@Post
//deal with the POST request to '/some/test'
public void test(A a, BB bb){
Student student = form(Student.class);
String name = session("name");
if(!name.equals(student.getName())){
throw new NoPermissionException(name);
}
session("lastLogin", now());
flash("result", "success");
model("one","1");
model("student",student)
}
}