[EMAIL PROTECTED] writes:

>------_=_NextPart_001_01C34B92.97745D80
>Content-Type: text/plain;
>       charset="iso-8859-1"

>Henning,

>What I *think* I need the rundata for is to have the various $link etc pull
>tools available.  If I do this:

If you really need to do this, please do 

VelocityContext context = TurbinePull.getGlobalContext();

This gives you a context with the global tools. All other tools are
either Request or User related so it doesn't make sense to access
them.

In my application I treat pull tools strictly as what they are:
Part of the View, which are used to access information from my
application. My tools are only a thin layer (adapters) over my data
model. If I need to access the data model from outside the view, I go
directly to the model and don't use the tools.

>If I get the context via RunData, then the $link tool exists.  However, I'm
>guessing there is another way?

If you need e.g. $link (which is the template link tool), you're much
better off by doing

TurbineURI tu = new TurbineURI();
... work on it ...

String uri = tu.getAbsoluteLink();

The tool in $link is simply a very thin interface layer over a
TemplateURI object. If you need a TemplateURI object in your
application, just use a TemplateURI (or its non-templated brother,
TurbineURI). That's the whole idea behind the new URI scheme. ;-)

You might want to look at the comment at the begining of TemplateLink. %-)

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

--- Quote of the week: "It is pointless to tell people anything when
you know that they won't process the message." --- Jonathan Revusky

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

Reply via email to