/Users/lyon/j4p/src/bookExamples/ch05ControlStructs/ServletDispatcherTest.java

1    package bookExamples.ch05ControlStructs; 
2     
3    /** 
4     * Created by IntelliJ IDEA. 
5     * User: dlyon 
6     * Date: Nov 13, 2003 
7     * Time: 4:30:01 PM 
8     * To change this template use Options | File Templates. 
9     */ 
10    
11   import bookExamples.ch05ControlStructs.DispatchCommand; 
12   import bookExamples.ch05ControlStructs.AddressDispatchProcessor; 
13   import bookExamples.ch05ControlStructs.ServletDispatcher; 
14    
15   import javax.servlet.http.HttpServletRequest; 
16   import javax.servlet.http.HttpServletResponse; 
17   import java.io.IOException; 
18    
19   public class ServletDispatcherTest { 
20       public static void main(String args[]) { 
21           ServletDispatcher sd = AddressDispatchProcessor.initServletDispatcher(); 
22           // This appears in the doGet or doPost 
23           HttpServletRequest request = null; 
24           HttpServletResponse response = null; 
25           sd.execute("doLogin", request, response); 
26       } 
27    
28   } 
29