My struts application has several modules. Each module has its own tiles definition file and also shares a single "common tiles" definition file. In the common definition file is where I have my layout defined:
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html> <head> <title><tiles:getAsString name="title"/></title> </head>
<body> <html:img page="/images/corpLogo.png"/> <tiles:insert attribute="header"/> <tiles:insert attribute="menu"/> <tiles:insert attribute="body"/> <tiles:insert attribute="footer"/> </body> </html>
Unfortunately, the generated <img...> tag is rooted at the module's context path rather than the application's context path. That means that the image never shows up for any of my modules.
I can work around the problem by using a traditional <img...> tag: <img src="<%=request.getContextPath()%>/images/corpLogo.png"/> but that's kind of gross IMO.
For struts tags that support the 'forward' attribute I can define a set of global forwards (in a shared struts config file). But the <html:img...> tag doesn't seem to support the 'forward' attribute.
Does anybody have a solution to this?
Thanks, J
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]