Servlet/JSP Flow Control: Enums, Exceptions, or Something Else?
- by Christopher Parker
I recently inherited an application developed with bare servlets and JSPs (i.e.: no frameworks). I've been tasked with cleaning up the error-handling workflow. Currently, each <form> in the workflow submits to a servlet, and based on the result of the form submission, the servlet does one of two things:
If everything is OK, the servlet…