Kelp Web Application


This sample demonstrates some basic features of XMLC within a web application.
Kelp Add-in Documentation

Running The Sample
  1. Compile the html files using Enhydra XMLC. You can do this by selecting Tools | XML Compiler and then clicking on Compile.
     
  2. Build the project to compile the XMLC generated Java source files and related servlets.
     
  3. Deploy the application using the Kelp Deployer. From the IDE menu select Tools | Kelp Deployer and then click on Deploy. This deploys configuration files for the application.
     
  4. Run the project to start the application server from your IDE.
     
  5. From a web browser, enter:

    http://localhost:8002
     

Sample Pages

The Files
input/conf/multiserver.conf.in
   Configuration template for Enhydra 3.x.

input/conf/bootstrap.conf.in
   Configuration template for EAS 4.

input/java.policy
   Policy file for EAS 4.

input/boot.properties
   Startup propeties for EAS 4.

input/data/form.properties
   Data store for the Form servlet.

input/data/newnode.txt
   HTML span that is added to the New Node servlet at runtime.

src/web-inf/web.xml.in
   Deployment descriptor template.

src/kelp/sample/webapp/resources/index.jsp
   Java server page for redirecting default.

src/kelp/sample/webapp/resources/Form.html
   XMLC template for Form servlet.

src/kelp/sample/webapp/resources/Greeting.html
   XMLC template for Greeting servlet.

src/kelp/sample/webapp/resources/NewNode.html
   XMLC template for New Node servlet.

src/kelp/sample/webapp/resources/Table.html
   XMLC template for Table servlet.

src/kelp/sample/webapp/presentation/FormServlet.java
   Servlet that stores form entry values to a properties file.

src/kelp/sample/webapp/presentation/GreetingServlet.java
   Servlet that updates a span of text with a input parameter from a deployment descriptor.

src/kelp/sample/webapp/presentation/NewNodeServlet.java
   Servlet that adds the contents of a text file to a web page.

src/kelp/sample/webapp/presentation/TableServlet.java
   Servlet that populates an HTML table at runtime.

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