on 5/23/01 7:05 AM, "Madhavi Ginjupalli" <[EMAIL PROTECTED]> wrote:
> Hi friends,
>
> Im my application, every logged user
> belongs to a role(for example manager, worker etc).
> The business logic is such that each role has a
> predefined layout(which is available as a .vm file
> in the layout directory). Once the user logs in,
> i have to choose a template that fits his role
> and as long as he stays in the session, the same
> layout should be used for all the forthcoming screens.
>
> Im finding that i will have to explicitely do a
> data.setLayoutTemplate() in every screen. Is there anything
> in the framework which allows me to set session wise
> defaults (like layout templates, background color etc)?
>
> Thanks in advance,
> Madhavi
You put things into named directories...
<http://jakarta.apache.org/turbine/howto/velocity-site-howto.html#How the
templates are found>
-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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]