You should extend ActionServlet for the Reverse2 servlet assignment. You've already used HttpServlet for the first 2 servlets assignments. Nothing new to see there. ActionServlet extends HttpServlet. You can look at the source code to see how, and you can ask questions here.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt