write a JavaBean which implements
org.apache.turbine.services.pull.ApplicationTool. 
the only method you really have to implement is init(object) whic
initializes your service on every request or session depending on your settings in the
TurbineResources.properties
then add this as a pull service in your TurbineResources.properties.
something like 
tool.request.yourservice=org.company.util.YourService
there's a documentation in the TurbineResources.properties on how to pass
default attributes and stuff or how to make your service per
request/session/global/...
look at the source eg of org.apache.turbine.util.template.TemplateLink the
appropriate service in velocity is $link
i hope that helps. it's quite easy (at least for basic stuff)

> Hi,
> 
> As a new Turbine user, I read Jon Steven's article on the Pull MVC model.
> Makes a lot of sense to me (this is how I've been working with Velocity
> for
> the last 6 months).
> 
> http://jakarta.apache.org/turbine/turbine-2/pullmodel.html
> 
> But Turbine's default implementation appears to be a Push model, where
> every
> Velocity page requires a Java class.    However, I'd like to enable my
> template designers to add new navigational links without requiring the
> programmer to write a new Java class.
> 
> Is there a built-in structure that enables this, or do I implement my own
> additional framework?  I searched the docs, but didn't see an obvious
> recommended solution.  What's the "Best Practice" here?
> 
> Thanks,
> 
> WILL
> _______________________________________
> Forio Business Simulations
> Will Glass-Husain
> (415) 440-7500 phone
> (415) 235-4293 mobile
> 
> [EMAIL PROTECTED]
> www.forio.com
> 
> 
> 

-- 
[EMAIL PROTECTED]
www.tomb75.de

fon ++49(0)40 471 158 97
mobil ++49(0)177 345 6164

stresemannstrasse 157
22769 hamburg
germany

--------------------------------
"A man can't just sit around" (larry walters 1982)

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to