Sorry Dave, but I don't understand what you mean by every result needs a
definition. Can you give me an example please ?
Do you mean for every single page on the site I need a definition ? And
for each single action ?
What do I put in the body ? The page I need to display ? if so, what's
the point of using tiles, I can just go ahead and include this pages
fragments in my files ?
Ok let say I have an action :
<action name="search" class="action.SearchAction">
<result name="success">/pages/results.jsp</result>
<result name="ERROR">/pages/exception.jsp</result>
</action>
How do I get around this ?
The way I though tiles work is just like a master page in .net where you
create a template and then every single page on that site is decorated
and encapsulated in that master page, therefore resulting in a
consistent look and feel without a lot of efforts. Is this the case with
tiles ?
Dave Newton wrote:
--- Mansour <[EMAIL PROTECTED]> wrote:
but it seems to me that I have to configure it for
each single page which doesn't make sense to me.
Every result that is a tile will have a corresponding
tile definition, otherwise how else would it know what
the tile was?
<tiles-definitions>
<definition name="homeTiles"
template="/pages/layout/layout.jsp">
<put name="title" value="Home"/>
<put name="header"
value="/pages/layout/header.jsp" />
</definition>
</tiles-definitions>
in /pages/layout/layout.jsp :
<tiles:insertAttribute name="body"/>
Where do you define "body"?
d.
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
---------------------------------------------------------------------
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]