Hi
I am new to velocity and web application development. I was following the
"building web application" guide. I did the following -
- Download the Velocity Tools project source, unzipped to a folder
- when i ran the ant command in the folder, "ant example.simple" , it gave me
the error :
BUILD FAILED
Target "example.simple" does not exist in the project "velocity-tools".
so i just ran the ant command and it built the whole velocity-tools project.
Now, i created a new dynamic web application in RSA and imported the jars
(common*, velocity*, oro*) and copied the index.vm from the sample code. i also
copied the toolbox.xml to the web-inf folder. I copied the web.xml, and created
a java file in a package and copied the contents of ToyTool.java. Build and
run, the vm page did not seem to get the $ references. it displayed them like
text, like this -
Here we use a custom tool: $toytool.message
Let's play with a hashmap:
first add foo: $map.put("foo",$foo)
then add bar: $map.put("bar",$bar)
and that gives us $map
Here we get the date from the DateTool: $date.medium
Any pointer on what went wrong? thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]