velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kwok Peng Tuck <pengt...@makmal.com>
Subject Re: some clarification.
Date Wed, 02 Oct 2002 23:50:16 GMT
Thanks.

Jeff Duska wrote:

> Kwok Peng Tuck wrote:
>
>> I see in the sample app that ships with velocity a template is 
>> returned from the servlet, can a servlet
>> return a different template based on parameters passed to it via a 
>> post or get result ?
>> Thanks.
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> <mailto:velocity-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: 
>> <mailto:velocity-user-help@jakarta.apache.org>
>>
> Yes. I'm using the forum demo example you'll see how you can do this 
> via a command pattern. The command is passed in via a parameter called 
> action. I'm reusing this design in my current project until I can move 
> to full fledged MVC framework, such as Struts or JPublish. The front 
> side controller returns a different template based on the value of 
> action. For example, I have get states Velocity template. I display 
> this by using the www.myfakeserver.com/CDPub?action=getstate
>
> HTH,
>
> Jeff Duska
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:velocity-user-help@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message