You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by PC Leung <pc...@gmail.com> on 2004/10/09 16:37:02 UTC
How to write Tiles with Struts?
It is my 1st trial of tiles.
Referring the tiles documentation, my index.jsp like this.
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:insert definition="erp.mainLayout" flush="true" />
It has header, menu bar, content and footer.
It is a classic layout.
In the content jsp, it has URL link.
It points to another jsp which does not have no tiles definition.
When I click the link, a jsp is shown.
but header, menu bar and footer disappear.
What should be the URL points to
inside content area?
Should every page in my module become containing
something like this?
<tiles:insert definition="erp.mainLayout" flush="true" />
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to write Tiles with Struts?
Posted by Arnaud Vandyck <av...@ressource-toi.org>.
Sat, 9 Oct 2004 22:37:02 +0800,
PC Leung <pc...@gmail.com> wrote:
> It is my 1st trial of tiles.
http://www.oracle.com/technology/oramag/oracle/04-may/o34dev_struts.html
(this one does not work no more as I'm writing this mail -Err500- but
maybe it'll be online again later)
http://www.onjava.com/pub/a/onjava/excerpt/progjakstruts_14/index1.html
http://www-106.ibm.com/developerworks/java/library/j-strutstiles.html?loc=j
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html
I read the articles in the order I pasted the urls but do has you want ;-)
--
Arnaud Vandyck
http://fosdem.org/
Free and Open Source Developers' European Meeting
February 26-27 2005,
Bruxelles, Belgium
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org