On Friday, July 6, 2001, at 02:22 PM, Chittajallu, Vamsi wrote:
> where can i get a sample code showing velocity and turbine together,
> say for
> a helloworld or adding the user program. i was looking into the
> http://jakarta.apache.org/turbine/howto/velocity-site-howto.html
> site but wanted to understand things better.
If you have downloaded the TDK (tdk-2.1), and generated the sample
application as per the included instructions, then you have exactly
the example for which you are asking. Based on your question, it
appears that you have not actually looked at the TDK. Please look
closely at it, and then ask more specific questions. Until you do
so, you probably won't get many friendly answers.
There is a very basic database application, along with a basic user
management application. Both of them are Turbine web applications
that use Velocity for the templates.
Within the tdk, there is a templates directory in which you will find
the Velocity templates. If you want to understand how turbine hands
Velocity a context object (assuming you already understand some things
about Velocity), then you will need to get a copy of the Turbine
source (turbine-src-2.1) which you can download from the same place
you get the TDK:
http://jakarta.apache.org/builds/jakarta-turbine/release/2.1
Take a look at these classes to get started:
org.apache.turbine.services.velocity.TurbineVelocityService
org.apache.turbine.modules.screens.VelocityScreen
Good luck.
-Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]