Is there any best practice when binding global errors to Spring form (say service class throws exceptions)? Do we use reject and spring:errors to deal with such case?
I do not get any result in the JSP snippet. "Input" form binds and gets me the results but I do not see any output for the errors. Is there something obvious that I am missing?
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
I have never used ModelMap. But the following code:
It mean you add a map into a map. I doubt it would work.
Where did you get the example code?
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
You should ask in Spring Source forum also. I've very little experience in Spring Annotation. I'm afraid I couldn't help you much on this.
OK I got it. I changed name="input" instead of command and items="${errors.globalErrors}"
But now I have another issue -
I am trying to use the same page for another controller which is supposed to throw errors and this JSP should catch it. How am I supposed to show these errors?