Changes between Version 8 and Version 9 of DJWS


Ignore:
Timestamp:
2011-02-01T14:50:51+01:00 (14 years ago)
Author:
jvelde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DJWS

    v8 v9  
    4545To 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.
    4646
    47 The filename is used as the servlet name! So for example, '!AddEventMenuServlet.java' will be served on !http://localhost:8080/myapp/AddEventMenuServlet.
     47The 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)
    4848
    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)
     49So 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.