I have the following controller:
public class MyErrorController implements ErrorController {
@RequestMapping("/error")
public String handleError(HttpServletRequest request, Model model) {
model.addAttribute("request", request);
}
}
And in my template, I can do:
Method: <span th:text="${request.method}">method</span><br/>
And it will give me html of:
Method: POST
Is there a simple way to know all of the properties that the request
method has in Thymeleaf? For example, doing something like %{request.toDict}
(made up for demonstration purposes). HttpServletRequest methods are listed here, but I'm not sure which can be used as properties and furthermore, how it can be (hopefully) easily shown from the template.