Version of Struts and Tiles?

Antonio

2008/5/9 Darren James <[EMAIL PROTECTED]>:
> Hello All,
>
> I have a flow that is basically a toplevel struts2 action having a result of
> type TilesResult.  That tile
> result has as one if it's attributes another struts2 action that also has a
> result of type TilesResult.
> So my tiles.xml looks like this (I've changed names and attributes to try to
> simplify the example
> as much as possible)
>
>   <definition name="pageLevelTile" extends="somePageLevelTemplate">
>       <put-attribute name="header"   value="/WEB-INF/tiles/pages/header.jsp"
> />
>       <put-attribute name="body"     value="/findTileBody.action" />
>   </definition>
>
>
>   <definition name="moduleLevelTile" extends="someModuleTemplate">
>       .... stuff
>    </definition>
>
> -----------
>
> So i have an action, call it showPage.action that forwards to pageLevelTile,
> then
> within pageLevelTile the "body" attribute invokes the action
> findTileBody.action
> that eventually forwards to the moduleLevelTile.
>
> The issue with this is the browser only renders the moduleLevelTile (all the
> surrounding page-level stuff gets wiped out for some reason), and I'm seeing
> this
> exception:
>
> ---------------------
> SEVERE: Servlet.service() for servlet default threw exception
> java.io.IOException: Error including path
> '/WEB-INF/tiles/templates/yuiDocTemplate.jsp'.
> java.lang.IllegalStateException: Exception occurred when flushing data
>       at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:201)
>       at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
>       at
> org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestContextWrapper.java:72)
>       at
> org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
>       at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:417)
>       at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368)
>       at
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
>       at
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
>       at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
>       at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
>       at
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:170)
>       at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> ---------------------
>
> Any ideas?
>
> thanks much,
>
> - darren.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to