You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Leos Literak <li...@centrum.cz> on 2002/04/21 08:11:52 UTC
multiple views
Hi,
I wonder, if someone has created library/servlet
for velocity for dynamic/rules based selection
of view. VelocityServlet approach leads me to
static selection ...
I'd like to have something like:
if browser is lynx use A.vm for servlet /Index
else B.vm
if URL contains parameter print, use C.vm for ViewItem
I'd like not to reinvent wheel, so I'd appreciate,
if anyone can help me (link to existing library,
source code example ..).
Well, maybe I'll look at webwork, if I remember well,
they have something similar ..
Thanks in advance ..
Have a nice Sunday!
Leo
--
Leos Literak
http://AbcLinuxu.cz - tady je tucnakum hej!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: multiple views
Posted by Ken Anderson <ka...@pacific.net>.
Just use a controller servlet.
See forumdemo example, or actionservlet.
Ken
Leos Literak wrote:
> Hi,
>
> I wonder, if someone has created library/servlet
> for velocity for dynamic/rules based selection
> of view. VelocityServlet approach leads me to
> static selection ...
>
> I'd like to have something like:
>
> if browser is lynx use A.vm for servlet /Index
> else B.vm
> if URL contains parameter print, use C.vm for ViewItem
>
> I'd like not to reinvent wheel, so I'd appreciate,
> if anyone can help me (link to existing library,
> source code example ..).
>
> Well, maybe I'll look at webwork, if I remember well,
> they have something similar ..
>
> Thanks in advance ..
>
> Have a nice Sunday!
>
> Leo
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>