The easiest way that i can think of is to write a java class that has a non
static method that invokes the static servlet's method in turn. Now register
this new class in turbineresources.properties in application scope as a pull
service as documented in turbine
(tools.application.staticservletwrapper=wrapper).

Now you should be able to refer to the wrapper's method in any velocity page as
$wrapper.methodcall

vijay


--- Shan Gopalakrishnan <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> This is a velocity template question.
> 
> I want to expose a StaticServlet object that I have in the velocity context 
> and refer in the velocity templates.
> Also call its static method by passing the request object to it.
> 
> The equivalent in JSP is
> 
> <%= StaticServlet.getStaticPath(request, "/images/globe.gif")
> 
> I'm still trying to understand velocity better.  Any help greatly 
> appreciated .thanks
> 
> - Shan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to