Voici mon controller:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
@Controller
@RequestMapping("/test")
public class TestServlet {
@RequestMapping("/country/{latitude}-{longitude}")
public String getCountry(@PathVariable String latitude, @PathVariable String longitude, Model model){
//inject the data in the JSP
model.addAttribute("latitude", latitude);
model.addAttribute("longitude", longitude);
//return the html
return "private/private";
} |
Je veux avoir si possible un moyen facil de faire un requette http depuis la partie JavaScript pour atteindre
public String getCountry(@PathVariable String latitude, @PathVariable String longitude, Model model)
Merci beaucoup
Partager