And now you want to select some students and add them to some table in some database, is that so? I think you only have to put this inside a form and submit it to the server, then in the
servlet you get the values and in the Data Access Class you do the database operations. By the way
you should always do something like this, not coding
java directly in the
JSP, and definitly not doing the SQLs in the JSP, have a look at the Model View Controller:
http://java.sun.com/blueprints/patterns/MVC.html