Corinis Servlet

There is a default servlet with which you can access all corinis functions as well (actually there are two - one is a special version that has a little special code required for the admin interface like getting the configured modules).

calling a module with the servlet

Calling a module function works by:

  • setting a path:
    • /MODULENAME:function/XSL?paramters
  • setting paramters (get or put)
    • module=MODULENAME:FUNCTION&xsl=XSL&parameters
  • setting servlet init parameters (using the web.xml)
    • module=MODULENAME:FUNCTION;...
    • xsl=XSL

You can combine module calls by using multiple MODULENAME:function calls

Depending on your layout it makes sense to use a different call mechanism. For example a simple webpageit might be enough to include only the cms (module=Cms:getDocument) without any paramters (they will be set by the path) or a simple combination cms-filemanager (ie. for the navigation) + forum the servlet paramter set throu web.xml are more than enough - you can still extend this using path or get/put paramteres :)

The administration pages are done completely using the path method (makes it easier to keep extend).

applying a xsl

It can read the required XSLs either from the file system or from inside zip (use XYZ.zip:PATH-TO.xsl)

prefilled parameters which are ALWAYS available:

  • name (username)
  • id (userid; remember userid=1 is not logged in)
  • session (session string) - can be applied with &corinis_session=
  • date (current date - formatted)

setup

examples