Project Notes


Project: Enhydra Sample Project for JBuilder
Author: Paul Mahar
Company: Lutris Technologies
Description:
Sample project showing some basic features of XMLC.
Enhydra Tools for JBuilder Documentation

Running The Sample
  1. Compile the html files using Enhydra's XMLC. You can do this by selecting Wizards | XMLC Compiler Wizard from the JBuilder menu and then clicking on Compile.
     
  2. Run the StartMultiServer class. If you are already running a web server on port 80, you will first need to modify the following entry in the project's multiserver.conf file to use an available port.
    Connection.HttpConnSample.Port = 80
    
  3. From a web browser, enter http://localhost
    You must also specify a port if you set the port to something other than 80.

Sample Pages

The Files
conf\EnhydraSample.conf
   Configuration file for the sample servlet.

conf\multiserver.conf
   Configuration file for the multi-server.

data\formdata.properties
   Data store for the Form page.

com\lutris\jbuilder\sample\html\Form.html
   XMLC template for Form page.

com\lutris\jbuilder\sample\html\Greeting.html
   XMLC template for Greeting page.

com\lutris\jbuilder\sample\html\NewNode.html
   XMLC template for New Node page.

com\lutris\jbuilder\sample\html\Table.html
   XMLC template for Table page.

logs\access.log
   Records hits to multiserver.

log\multiserver.log
   Records servlet startup and error status.

com\lutris\jbuilder\sample\presentation\Form.java
   Java class that processes requests for Form.po

com\lutris\jbuilder\sample\presentation\Greeting.java
   Java class that processes requests for Greeting.po

com\lutris\jbuilder\sample\presentation\NewNode.java
   Java class that processes requests for NewNode.po

com\lutris\jbuilder\sample\presentation\Table.java
   Java class that processes requests for Table.po

text\addme.txt
   HTML span that is added to the New Node page at runtime.

EnhydraSample.html
   This file which is not an XMLC template.

EnhydraSample.java
   The servlet controlling class.

StartMultiServer.java
   A utlity class for launching the multiserver from within JBuilder.