I am using tiles and I find them very useful
I can give you an example
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:insert page="/layouts/form_template.jsp" flush="true">
<tiles:put name="header" value="/common/header.jsp"/>
<tiles:put name="body" value="/forms/body.jsp"/>
<tiles:put name="footer" value="/common/footer.jsp"/>
<tiles:put name="error" value="/common/error.jsp"/>
</tiles:insert>
the above four(header,body,footer,error) are sent like arguments to
form_template.jsp
The following is the /layouts/form_template.jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<html:html>
<head>
<title>
<html:base/>
</head>
<body>
<!-- Insert Standard Header Page Fragment -->
<tiles:insert attribute="header"/>
<!-- Insert Error Page Fragment -->
<tiles:insert attribute="error"/>
<!-- Insert Body Page Fragment -->
<tiles:insert attribute="body"/>
<!-- Insert Standard Footer Page Fragment -->
<tiles:insert attribute="footer"/>
</body>
</html:html>
----- Original Message -----
From: "Wiswell, Virginia" <[EMAIL PROTECTED]>
To: "'struts list'" <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 2:50 PM
Subject: tiles or plain includes and preprocessing
> i need to let my marketing users construct web pages at will. they are
html
> savvy. i was planning to use include files but would use tiles if there
were
> a significant advantage. after the users have created a list of the page
> elements (include files) that they want, i would like to let them create
the
> html, save it as a static page and eventually put it in production. i want
> to take advantage of the dynamic qualities of include files to create
static
> html files.
>
> has anyone done this? would tiles make this easier? i would like to
automate
> the preprocessing instead of having them view source and then save it.
>
> tia,
>
> virginia
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]