velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <>
Subject Re: Multiple templates in servlets
Date Thu, 01 Nov 2001 23:51:42 GMT
On 11/1/01 6:45 PM, "Jonas Bengtsson" <> wrote:

> Hi,
> <newbie-quiestion-alert>
> Is it possible to use several templates in one servlet. For instance if I
> have three templates called: header.vm, content.vm and footer.vm. Is it
> possible to use all these templates from the servlet, i.e. not with #parse
> directives.
> </newbie-question-alert>

If I understand what you mean - to not use something like a 'frame' template


Then you can actually render each individually into the output stream.  The
included Velocity servlet isn't designed for this - you will have to modify
or roll your own, but yes, it's possible.

Can I ask why you want to do this?


Geir Magnusson Jr.                           
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message