you didnt employee
servlet or servlet filter or some kind of controller . and here jsp is doing all the work .
in MVC, you need to define one role to one worker. normally
*JSP-best suite for view(should only contain logic for view).
*Servlet[known as controller]-he is good at delegating request to appropriate location/business logic.
*Java class-Obviously better to put your logic here.
So that, specialized people can concentrate their job with out interfering others.
and for example: jsp is best place to put html , view logic etc..
if you put their
java class then it wont be convenient to maintain
[working in java code in java class is better than working in java code in jsp is in
IDE]
and there are many reason why MVC is famous...
=>
WhyNotUseScriptlets
and now you move all your business logic(java code) to java class and call the class from your servlet, hence submit your form/jsp to servlet