예제 #1
0
파일: Weather.java 프로젝트: haint/juzu
 // 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();
 }
예제 #2
0
파일: A.java 프로젝트: haint/juzu
 @View
 public Response.Content index() {
   return index.ok();
 }
예제 #3
0
파일: A.java 프로젝트: nscavell/juzu
 @View
 public void index() {
   index.render();
 }
예제 #4
0
파일: A.java 프로젝트: phamtuanchip/juzu
 @View
 @Route("/")
 public Response.Content index() {
   return index.ok();
 }
예제 #5
0
 @View
 public Response.Content index() throws IOException {
   return index.ok();
 }