StepByStep

Step by step


In order to have a common place to start from I recommend that you download the jZonic sample project. This distribution contains everything that you need to get started. All necessary files are included. You can get it here:
basic-project-v0.5.tar.gz
basic-project-v0.5.zip

Unpack the file to a directory of your choice. I will describe the directory structure shortly:

classes: where all class files will be generated
src: here are all source files
test: for the testcases
web: containing all web pages like JSPs, HTML or whatever
etc:additional resource files that are needed
resources: here is only the web.xml
dist:the generated war file will be placed here

This distribution also contains a build.xml. You can use this one to compile and build the war file. Simply call “ant” and everything gets done for you. Then you can deploy the war file from the dist directory to your servlet or J2EE container. This demo already contains two pages. If you run “ant” and deploy the war file then point your browser to
http://localhost:8080/demo/index.jz

in order to see the first page. It is a simple view which just returns a short HTML string. The second view demonstrates the use of Velocity and you can see it under:
http://localhost:8080/demo/velocity.jz


1. step - a simple page

The FirstStep will demonstrate creating simple page with only a view. This view will first generate the HTML in Java and then using velocity as template engine


revision: 5 / last update: 25.08.2004 10:47:58