Hi! 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 org.apache.struts.tiles.NoSuchDefinitionException at org.apache.struts.tiles.taglib.InsertTag.processDe finitionName(InsertTag.java:568) at org.apache.struts.tiles.taglib.InsertTag.createTag Handler(InsertTag.java:479) at org.apache.struts.tiles.taglib.InsertTag.doStartTa g(InsertTag.java:441) at org.apache.jsp.WEB_002dINF.jsps.ex_jsp._jspService (ex_jsp.java 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 paragrahps: struts-config.xml =========== <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> tiles-defs.xmls ========== <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" /> </definition> MainLayout.jsp =========== <body> <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"/> </body> 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. Regards -- View this message in context: http://www.nabble.com/Struts-1.3.8-and-tiles----I-get-a-NoSuchDefinitionException-tp18797838p18797838.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]