// 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(); }
@View public Response.Content index() { return index.ok(); }
@View public void index() { index.render(); }
@View @Route("/") public Response.Content index() { return index.ok(); }
@View public Response.Content index() throws IOException { return index.ok(); }