Day, Michael-IBM/TT wrote:

> I am attempting to use velocity tools 0.9 with struts 1.1-b2 and velocity
> 1.3.  Does anyone know how I could use a VM template for layout purposes,
> instead of doing #include for headers/footers/menus on each content page?
> For example, the login page may have a layout different from a product
> display page.  I'd like to define this separate from the content.
> 


In the Struts/JSP world there is Tiles. Tiles is a JSP Taglib and could be
described as a templating system or document assembler. You might be
able to get some ideas from it for use in Velocity. It seems quite
popular and successful within the Struts community.
http://jakarta.apache.org/struts/userGuide/dev_tiles.html

I also liked the article "UI design with Tiles and Struts" at
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html
It's JSP-focused and therefore not directly applicable to Velocity,
but it nicely present the various concepts to eliminate redudancy
in web pages by using templates.

It would be really great to have something like Tiles for Velocity.
That would be a cool contribution...


Gabe


-- 
--
Gabriel Sidler
Software Engineer, Eivycom GmbH, Zurich, Switzerland


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to