Examples

Click provides a number of example web applications to demonstrate features and get you up and running as quickly as possible. These web applications include:

Click Examples
Click Examples (click-examples.war) provides example Pages to demonstrate Click features and programming techniques. This application also allows you to view the Page source code, templates and config files.

Context Path:   /click-examples

View online at   http://www.sunvolt.com/examples

Click Documentation
Click Documentation (click-documentation.war) provides the complete documentation set you are now reading.

Context Path:   /click-documentation


Deploying Examples

To deploy the example web applications:
  1. Ensure JAVA_HOME environment variable is set and points to a JDK installation (1.4 or later).

  2. Ensure ANT_HOME environment variable is set and points to an Ant installation (1.6 or later).

  3. Edit build.properties file and set the dir.appserver property to point to your J2EE web container deployment directory. For example:
      # App Server deployment directory
      dir.appserver=C:/java/apache-tomcat-5.5.12/webapps 
    Note on Windows ensure you replace any \ directory path characters with / otherwise Ant may not find the directory.

  4. Run the Ant target:
      ant deploy-examples 
    This will copy the click-examples application WAR file to your Application Servers deployment directory.

    The example application WAR files come pre-built with the Click distribution. You can also build the examples yourself. See the Building topic for more details.