Not showing error when calling another function in Spring
- by Javi
Hello,
I have a controller with 2 methods. The first one just add some lists to the model (the lists of my comboboxes) and return a JSP with a form. The second one validates the data and if there aren't errors it saves the data. The code looks like this:
public String showForm(Model model){
//load some data into some lists
return…