Hi there,
At Javaranch we have a policy of not just giving out code answers, see
NotACodeMill for details.
Now onto your question,
This article covers the topic. However please note that in most cases when you think you need to extend ActionServlet, you actually want to
extend RequestProcessor.
Hope that helps!