I use a mysql database with students and grades for a training program. I would like to create a dynamic form with one field that works like this: if i write the name in the form and press check, and the student exists, i want it to show me the information about the student and just one form field for the grade. if the user does not exist, i want it to output all the form fields required to insert the data for the student plus the grade field.
Is JSP the proper language for this? How can I accomplish this? I have worked only with php until now, and I have no jsp experience. Can you guide me to any tutorials with a similar approach to forms? Thank you.

Yes JSP, it can be done with jsp, but do you know java? Because you can not write jsp, and especially such project without knowing good java.

Check the tutorials at the top of the java and the jsp forum.