You can write a servlet that is meant to be called by your applet.
Applet-Servlet Communication with HTTP GET and POST :
The applet can send data to the applet by sending a GET or a POST method. If a GET method is used, then the applet must URL encode the name/value pair parameters into the actual URL string.
Communicating with Object Serialization :
Instead of passing each parameter of student information as name/value pairs, we\'d like to send it as a true Java object. Upon receipt of the this object, the servlet would add the this to the database.
Sending Objects from a Servlet to an Applet :
After registering the object in the database. Now the servlet has to return an updated list of registered students that is then returned as a vector of objects.