Changeset 1079

Show
Ignore:
Timestamp:
06/07/08 21:16:46 (3 months ago)
Author:
kris
Message:

updated to ServletProvider? revisions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/example/net/servlets.d

    r1074 r1079  
    216216 
    217217        // map echo requests to our echo servlet 
    218         sp.addMapping ("/echo", sp.addServlet (new Echo, "echo", example)); 
     218        sp.addMapping ("/echo", sp.addServlet (new Echo, example)); 
    219219 
    220220        // point the default context to the tango help files 
    221         sp.addContext (new ServletContext ("", "../doc/html")); 
     221        auto help = sp.addContext (new ServletContext ("", "../doc/html")); 
    222222 
    223223        // map all other requests to our file servlet 
    224         sp.addMapping ("/", sp.addServlet (new FileServlet, "files")); 
     224        sp.addMapping ("/", sp.addServlet (new FileServlet, help)); 
    225225 
    226226        // fire up a server 
  • trunk/example/net/servletserver.d

    r1068 r1079  
    3232 
    3333        // map all html requests to our file servlet 
    34         auto files = sp.addServlet (new FileServlet, "files"); 
     34        auto files = sp.addServlet (new FileServlet); 
    3535        sp.addMapping ("*.html", files); 
    3636        sp.addMapping ("*.htm", files);