[Simpleweb-Support] Howto use PatternMapper?
                
                Brought to you by:
                
                    niallg
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Andy M. <and...@ya...> - 2005-03-18 03:03:46
      
     
   | 
I am currently using the following code to run a simple test server: import simple.http.connect.*; import simple.http.serve.*; import simple.http.load.*; import java.net.*; public class TestServer { public static void main(String[] list) throws Exception { MapperEngine engine = new MapperEngine(); Connection connection = ConnectionFactory.getConnection(engine); connection.connect(new ServerSocket(8080)); } } I am wondering how I can tell the MapperEngine to associate *.ssjs with a particular service. I think I would use a PatternMapper for this, but how? I would prefer to do this w/o the use of exernal files (such as a properties file). Mozilla Firefox - Fast, Secure, Powerful Web Browser Get it at www.mozilla.org for Free! Firefox Users - Put Firefox in your tagline/signature!  |