示例#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();
 }