|
I am trying to set a value in the model.addattribute
@GetMapping("/summary")
public String getSummaryScreen(Model model) {
Application application= getApplicationData();
ClientValidationModel clientValidationModelView = getclientModel();
model.addAttribute("clientValidationModelView",clientValidationModelView);
model.addAttribute("application","This my application");
return "summary";
}
But if i try to access the application in the html file, the values is not rendered all the see on html output is
org.thymeleaf.context.WebEngineContext$ServletContextAttributesMap@18b8cee8
My HTML is
<p th:text="${application}">applicationNumber</p>
|