Example #1
0
 // tag::index2[]
 @View
 @Route("/show/{location}")
 public Response.Content index(String location) {
   Map<String, Object> parameters = new HashMap<String, Object>();
   parameters.put("location", location);
   parameters.put("temperature", weatherService.getTemperature(location));
   return index.with(parameters).ok();
 }
Example #2
0
File: A.java Project: haint/juzu
 @View
 public Response.Content index() {
   return index.ok();
 }
Example #3
0
File: A.java Project: nscavell/juzu
 @View
 public void index() {
   index.render();
 }
Example #4
0
 @View
 @Route("/")
 public Response.Content index() {
   return index.ok();
 }
Example #5
0
 @View
 public Response.Content index() throws IOException {
   return index.ok();
 }