Changes between Version 8 and Version 9 of DJWS
- Timestamp:
- 2011-02-01T14:50:51+01:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DJWS
v8 v9 45 45 To avoid editing hardcoded mappings in the WWWServer [http://www.molgenis.org/svn/gcc/trunk/handwritten/webserver/WWWServer.java mapper] class, we decided to add a dynamic component. Any Java class in handwritten/java/servlets ([http://www.molgenis.org/svn/gcc/trunk/handwritten/java/servlets/ link]) is considered a servlet, and automatically loaded. 46 46 47 The filename is used as the servlet name! So for example, '!AddEventMenuServlet.java' will be served on !http://localhost:8080/myapp/AddEventMenuServlet. 47 The filename is used as the servlet name! So for example, '!AddEventMenuServlet.java' will be served on !http://localhost:8080/myapp/AddEventMenuServlet. The mapping recurses through all packages within handwritten/java/servlets, so this can be kept tidy in e.g. a package for each application. (though not needed maybe) 48 48 49 The mapping recurses through all packages within handwritten/java/servlets, so this can be kept tidy in e.g. a package for each application. (though not needed maybe) 49 So add your own servlets by putting them somewhere in handwritten/java/servlets, with a filename under which you'd like to have it deployed also.