tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Bessette" <ebesse...@qwest.net>
Subject Specify one file for all directory mappings
Date Mon, 20 Oct 2003 01:11:29 GMT
Is there a way to specify one file, like the one below, for all directory
mappings?

file (index.jsp):
<%@ taglib uri="struts-tiles" prefix="tile" %>

<tile:insert definition="project.layout.main" flush="true">
        <tile:put name="sidebar" value="${
pageContent.request.requestURI }/sidebar.jsp" />
        <tile:put name="content" value="${
pageContent.request.requestURI }/content.jsp" />
</tile:insert>

The file would be used for all uri's that end with directories, like
http://host/project/dir1/ and http://host/project/dir1/dir2/.

I tried using the welcome-file-list in my web.xml to do this, but it looks
like those files are only relative.

<welcome-file-list>
	<welcome-file>index.jsp</welcome-file>
	<welcome-file>/shared/index.jsp</welcome-file>
	<welcome-file>index.html</welcome-file>
</welcome-file-list>

Is there anyway to configure Tomcat, Struts, or Tiles to do this?

Please reply to ebessette@qwest.com, as I'm not subscribed to this list.

Thanks,
Eric


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message