Handle all inputs(radio, checkbox, dropdown, text) in HTML and upload with ajax method. J-Query also used for validation. Finally upload unique record(field-name[aadhar] is unique) to MySQL database. These all of achieved by MVC structure in JSP Eclipse IDE.
1.create new project. 2.Add these dependencies Add Dependancies (JAR Files) --> mysql-connector (standard) -->commons-fileupload-1.2.2 -->commons-io-2.4 -->gson-2.8.6 -->jsp-api-2.1-6.0.2 -->jstl-1.2 -->servletapi-2.3 3. Configure web.xml with Servlet ***important 4.create DAO class 5.create Model class 6.create controller(Servlet) class 7.Design index page