We use something similar to the above approach only we have extracted everything that has to do with display to the tiles-def.xml. We make use of nested tiles and we have our definitions set up so that we can specify different titles, menus, menu items, sub-menus, headers, footers, and bodies as we please. The only things we have in the struts-config.xml are forwards to tiles definitions.
I'm in the middle of a long and busy testing/debugging phase right now (when will the waterfall life-cycle ever die out?
) but as soon as I have some breathing room, I hope to be able to share what we have done in a future JavaRanch newsletter article.
My tip for the day: Did you know that you can include a Struts action?
<jsp:include page="myAction.do">
<jsp:param name="p1" value="test" />
<jsp:param ... />
</jsp:include>
This works like a tile too. I used this to factor out different summary tables that we wanted to show on personalized welcome pages. This really helps to keep JSPs smaller and less cluttered and the different section logic separate from each other.
[ June 03, 2003: Message edited by: Junilu Lacar ]