Codice completo Servlet soggetta ai filtri

package web;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;

public class FilteredLogin extends javax.servlet.http.HttpServlet
implements javax.servlet.Servlet
{
    public FilteredLogin()
    {
        super();
    }
    
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
        this.doPost(request, response);
    }   
    
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
        System.out.println("La Servlet sta processando il metodo doPost");
        String userID = request.getParameter("userID");
        String password = request.getParameter("password");
        
        response.setContentType("text/html");
        PrintWriter writer = response.getWriter();
        
        writer.println("<html><body>");
        writer.println("Benvenuto " + userID + "!");
        writer.println("</body></html>");
        writer.close();
    }
}