You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Sky Torch <sk...@hotmail.com> on 2001/05/15 22:48:27 UTC
urgent: velocity context related issues
1. is context object per request, i.e. each request
may have its own context object ? from
TurbineVelocityService class, it seems like it.
2. since context object is passed to multi screen classes,
all variables for dynamic data are within same context
name space. therefore, a developer needs a complete set
of these variable when write a new screen class.
otherwise, he may override existing ones. is it a
correct statement ?
3. if i write 3 templates:
/direction/driving/map.vm
/direction/train/map.vm
/direction/train/ny/map.vm
my module path is: com.company.modules
each one requires its own dynamic data. i wanna implement
3 screens. what name and directory should these screens
be put ?
any quick help is appreciated.
-sky
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: urgent: velocity context related issues
Posted by Jon Stevens <jo...@latchkey.com>.
on 5/15/01 1:48 PM, "Sky Torch" <sk...@hotmail.com> wrote:
> 1. is context object per request, i.e. each request
> may have its own context object ? from
> TurbineVelocityService class, it seems like it.
Yes. One context object per request.
> 2. since context object is passed to multi screen classes,
> all variables for dynamic data are within same context
> name space. therefore, a developer needs a complete set
> of these variable when write a new screen class.
> otherwise, he may override existing ones. is it a
> correct statement ?
Only one Screen class is executed per run.
> 3. if i write 3 templates:
> /direction/driving/map.vm
> /direction/train/map.vm
> /direction/train/ny/map.vm
>
> my module path is: com.company.modules
>
> each one requires its own dynamic data. i wanna implement
> 3 screens. what name and directory should these screens
> be put ?
A better design is:
<http://jakarta.apache.org/turbine/pullmodel.html>
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org