2013-02-13

This can apply to many error handling scenarios, but I'm curious about how to do it in a login scenario.

Given this Spring controller method:

And a login.html form (I'm using thymeleaf, but just follow logic, similar to jsp):

Is this how error handling is usually done in java web applications? Anywhere an error can happen, you branch out with different ifs? Is there a cleaner, or more generic, way to do this?

Show more