Hi All, I'm trying to migrate my S1 application using Tiles1 to Tiles2. Here is the configuration: Struts 1.3.9, Tiles 2.0.6 and struts-tiles2-1.4.0-SNAPSHOT.jar plugin.
I followed the migration guide from the Tiles2 website and got it work, or almost ! Everything was working nicely until I used the export feature from displaytag (see exception below) Taking a much closer look at the processTilesDefinition method from the TilesRequestProcessor class: if (container.isValidDefinition(definitionName, new Object[] { request, response })) { retValue = response.isCommitted(); try { container.render(definitionName, new Object[] { request, response }); } catch (TilesException e) { throw new ServletException("Cannot render definition '" + definitionName + "'"); } It appears that the retValue is always set to 'false' in any case, hence in the log statement my '.page.View' is always processed as uri and not as definition. Then extending this class and setting the retValue to 'true' (which is intuitively what I would do here) solved my issue with displaytag and made it processed as tiles definition ! The bad thing is that I really don't know, what the response.isCommitted(); is supposed to do (why it is always returning false in my case), is the struts-tiles2-1.4.0 not compatible with my struts version ? any idea ? Thanks Yannick StackTrace: ** Exception: java.lang.IllegalArgumentException: Path .page.View does not start with a "/" character ** Message: Path .page.View does not start with a "/" character ** Cause: null ** Exception stackTrace: java.lang.IllegalArgumentException: Path .species.compiled.View does not start with a "/" character at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:368) at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:196) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.tiles2.TilesRequestProcessor.doForward(TilesRequestProcessor.java:158) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396) at org.apache.struts.tiles2.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:210) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]