i would have need some tips/help here. I have nearly 0 experience with jquery but i might need it.
in my controller i have this :
@RestController
public class mainController {
@RequestMapping(value = "/index", method = RequestMethod.GET)
public String index(Model model) throws IOException, GeneralSecurityException {
DriveQuickstart drive = new DriveQuickstart("c:/temp/credentials.json");
String res = drive.checkFile("cwg");
return res;
}
for now, i succeeded to display the res in my view with jquery get. But i need to go further.
in my view (index.html), i need to pass the parameter with (jquery method?) a form and display the res.
like :
@RequestMapping(value = "/index", method = RequestMethod.GET)
public String index(Model model) throws IOException, GeneralSecurityException {
DriveQuickstart drive = new DriveQuickstart("c:/temp/credentials.json");
String res = drive.checkFile("***HERE PARAMETER***");
return res;
}
I probably needed a POST ans GET method. but i have no idea how to achieve that. How to pars parameters to a controller method via html.
thx very much