My project based on spring boot,Thymeleaf,mysql,html and Jquery.
My scenario is to Get the List iterate and show the d
I init the entity object like respondResult.addObject("entSetCharges",new EntSetCharges());
@GetMapping(value="/setchargeslist")
public ModelAndView doGetSetchargesList()
{
List listCharges = new ArrayList<>();
ModelAndView respondResult = new ModelAndView("SetCharges");
try {
/*Get the set charges list*/
listCharges = serSetCharges.doGetSetChargesList();
if(listCharges!=null)
{
respondResult.addObject("savedchargeslist",listCharges);
respondResult.addObject("entSetCharges",new EntSetCharges());
}
else
{
respondResult.addObject("savedchargeslist",new ArrayList<>());
}
} catch (Exception e) {
// TODO: handle exception
}
return respondResult;
}