@WebServlet(name = "SimpleServlet" ,urlPatterns = {"/simple"}) public class SimpleServlet extends HttpServlet{ … } @WebFilter(filterName="CommonFliter",urlPatterns="") <servlet> <servlet-name>SimpleServlet</servlet-name> <servlet-class>footmark.servlet.SimpleServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>SimpleServlet</servlet-name> <url-pattern>/simple</url-pattern> </servlet-mapping>