update the code of servlets