I've created an html form that allows the user to login, or register.
Here is what I've thought about(just for the registration page, not login):
HTML FORM --> servlet ---> servlet calls java class that verifys the data, and shoves it into the database... ----> Makes a few tests --- > sends a dispatch to the jsp page that lets the user know it was succesful or not.
Is that good so far? I'm trying to seperate all the logic, but I'm not sure if the servlet should be there or not.
Data Layer -- > java class
Business logic layer(Sorft of) -- > servlet
present layer -- > jsp page
I'm basing it off of that, but I don't know if it makes sense what I'm doing?