This is in reality 2 seperate questions
1 how to get the information from a form to a servlet
2 how to then get that data into the DB.
So I have 2 answers:
1, Have you done any reading on
jsp and servlets, I would recommend the head first servlets and JSP book is a good starting place there.
2, And have you done any
jdbc work at all? as this is pretty basic stuff so should be covered in any basic level tutorial.