The web application that you develop has a deployment descriptor (WEB-INF/web.xml) which you must write. This file describes the configuration of your web application, including welcome pages (the file that is shown in a directory when none is specified by the request), mappings to servlets (path or extension name), and parameters to those servlets.
In this file, you configure the Struts ActionServlet as the servlet that will handle all requests for a given mapping (usually the extension .do).
In this same file, you configure the ActionServlet to use one or more configuration files for Struts itself.
In the Struts configuration file(s) struts-config.xml, you associate paths with the controller components of your application, known as Action classes (i.e. "login" ==> LoginAction class). This tells the Struts ActionServlet that when the incoming request is http://myhost/myapp/login.do it should invoke your controller component LoginAction.