struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ElCrackdel83 <>
Subject Struts 1.3.8 and tiles -- I get a NoSuchDefinitionException
Date Sun, 03 Aug 2008 11:30:27 GMT

I have a problem that I expect to solve with your help. I've been looking in
thousands of websites and I have not come up with the solution yet. In my
problem I get the next exception:
ApplicationDispatcher[/AplicacionTienda] PWC1231: Servlet.service() for
servlet jsp threw exception
at org.apache.struts.tiles.taglib.InsertTag.processDe
at org.apache.struts.tiles.taglib.InsertTag.createTag
at org.apache.struts.tiles.taglib.InsertTag.doStartTa g(
at org.apache.jsp.WEB_002dINF.jsps.ex_jsp._jspService ( from :86)

As I said, I've been checking my code with the one in thousands of websites,
and I believe it's right. Anyway I copy the involved parts in the following
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"
<set-property property="moduleAware" value="true"/> </plug-in>

<definition id="main" page="/WEB-INF/jsps/layouts/MainLayout.jsp">
<put name="header" value="/WEB-INF/jsps/common/header.jsp" />
<put name="footer" value="/WEB-INF/jsps/common/footer.jsp" />
<put name="userBar" value="/WEB-INF/jsps/common/userBar.jsp" />
<put name="menu" value="/WEB-INF/jsps/common/menu.jsp" />
<put name="body" value="/WEB-INF/jsps/exito.jsp" />

<tiles:insert attribute="header" flush="true"/>
<tiles:insert attribute="userBar" flush="true"/>
<tiles:insert attribute="menu" flush="true"/>
<tiles:insert attribute="body" flush="true"/>
<tiles:insert attribute="footer" flush="true"/>

Ex.jsp (that it's the JSP which is where the Action will send flow)
<tiles:insert definition="main"/>

I've written several System.out.println and I've found out that the line
that is causing the Exception is <tiles:insert definition="main"/> in the
Ex.jsp file.
Due to I get a NoSuchDefinitionException my doubt is: should I declare de
definition in any other configuration file?
Please, if you can help me I'd appreciate it a lot.
Thank you very much.
View this message in context:
Sent from the Struts - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message