Configuring the controller

We'll place our controller configuration into /WEB-INF/calyxo-control-config.xml. It looks like this:

<calyxo-control-config version="0.9"
  xmlns="http://calyxo.odysseus.de/xml/ns/control">

  <actions>

    <!-- The index action just forwards to our login page -->
    <action path="/index">
      <dispatch path="/WEB-INF/jsp/login.jspx"/>
    </action>

    <!-- Login action -->
    <action path="/login" class="de.odysseus.calyxo.sample.login.LoginAction">
      <dispatch name="success" path="/WEB-INF/jsp/welcome.jspx"/>
      <dispatch name="input" path="/WEB-INF/jsp/login.jspx"/>
    </action>

    <!-- Logout action -->
    <action path="/logout"
      class="de.odysseus.calyxo.sample.login.LogoutAction">
      <dispatch name="success" path="/WEB-INF/jsp/goodbye.jspx"/>
    </action>

  </actions>

</calyxo-control-config>
DTD lookup
Many XML editors allow to associate root element names with DTDs. If your editor supports this, you may want to associate calyxo-control-config with CALYXO_HOME/calyxo-control/conf/share/calyxo-control-config.dtd. Alternatively, you should adjust the DTD system path or simply copy the DTD file to your /WEB-INF directory.

Let's explore the elements and attributes used above:

Our sample configuration only uses a small subset of the available elements. Beyond what you have seen so far, you can

For these advanced features of the controller, please refer to the Calyxo Control component documentation.