Why would you want to have it as a jsp and not a tile definition ? . I don't know the internals, but would <tiles:xxx> tags work without <result type="tile"> defined?
On 8/23/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > Hey yeah I am using Tiles2. So this error only happens when I in > struts.xmlI point NOT to a definition but to a jsp like this (notice > no type there): > > <action name="presentEntryLogin" class=" > com.xfact.struts2login.actions.LoginLogoutDispatchAction" > method="presentEntryLogin"> > <result name="input">/WEB-INF/jsp/tiles/login/login_entry- > tile.jsp</result> > </action> > > This is the contents of login_entry-tile.jsp: > > <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> > > <%@ include file="/WEB-INF/jsp/common/layout/page_layout-defs.jsp" %> > > <tiles:insertDefinition name="not_authenticated"> > <tiles:putAttribute name="navigation" > value="/WEB-INF/jsp/common/navigation_date.jsp"></tiles:putAttribute> > <tiles:putAttribute name="body" > value="/WEB-INF/jsp/body/login/login_entry-body.jsp"></tiles:putAttribute> > </tiles:insertDefinition> > > And this is the contents of page_layout-defs.jsp > > @ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> > <%@ taglib prefix="s" uri="/struts-tags" %> > > <tiles:definition name="not_authenticated" > template="/WEB-INF/jsp/layout/page_layout.jsp"> > <tiles:putAttribute name="header" > value="/WEB-INF/jsp/common/unauthenticated_header.jsp" /> > <tiles:putAttribute name="footer" > value="/WEB-INF/jsp/common/footer.jsp" /> > </tiles:definition> > > On 8/23/07, j alex <[EMAIL PROTECTED]> wrote: > > > > Please paste relevant portions on your web.xml, tiles-config and struts > > xml > > files , so we can take a better look . I'm assuming you are using > > Tiles 2along with Struts 2 . > > > > On 8/23/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > > > > > Hello everybody. I am getting this error when I am trying to use tiles > > in > > > struts2. If anybody could help that would be terrific. Any input will > be > > > greatly appreciated. Thank you. > > > > > > javax.servlet.ServletException: Unable to define definition for a > > > container > > > which does not implement MutableTilesContainer > > > -- > > > Pavel Sapozhnikov > > > xFact, Inc > > > [EMAIL PROTECTED] > > > > > > > > > -- > Pavel Sapozhnikov > xFact, Inc > [EMAIL PROTECTED] >