Changeset 1079
- Timestamp:
- 06/07/08 21:16:46 (3 months ago)
- Files:
-
- trunk/example/net/servlets.d (modified) (1 diff)
- trunk/example/net/servletserver.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/example/net/servlets.d
r1074 r1079 216 216 217 217 // 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)); 219 219 220 220 // 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")); 222 222 223 223 // map all other requests to our file servlet 224 sp.addMapping ("/", sp.addServlet (new FileServlet, "files"));224 sp.addMapping ("/", sp.addServlet (new FileServlet, help)); 225 225 226 226 // fire up a server trunk/example/net/servletserver.d
r1068 r1079 32 32 33 33 // map all html requests to our file servlet 34 auto files = sp.addServlet (new FileServlet , "files");34 auto files = sp.addServlet (new FileServlet); 35 35 sp.addMapping ("*.html", files); 36 36 sp.addMapping ("*.htm", files);
