I want to implement this example with Spring:
@PostMapping(value = "/redirect/to_payment/{token}")
public ModelAndView handleRedirectMessage(@PathVariable("token") String token,
@RequestBody Transaction transaction, HttpServletRequest request) throws Exception {
String url = "http://www.someserver.com";
String post_token = "1234561234543322";
// Open here the link and redirect the
return new ModelAndView("redirect:" + url);
}
How I can open this link, sent the post_token as POST param and return the opened page to the user?
Is there some way to implement this solution for the user?
As the second solution can I return this page to the user and include the post_token
as a param?