You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/05/02 06:24:18 UTC

[jira] Reopened: (STR-1254) tiles:insert in jsp called from DefinitionDispatcherAction not working

     [ http://issues.apache.org/struts/browse/STR-1254?page=all ]
     
David Evans reopened STR-1254:
------------------------------

    Assign To:     (was: Struts Developer Mailing List)

> tiles:insert in jsp called from DefinitionDispatcherAction not working
> ----------------------------------------------------------------------
>
>          Key: STR-1254
>          URL: http://issues.apache.org/struts/browse/STR-1254
>      Project: Struts Action 1
>         Type: Improvement

>   Components: Tiles
>     Versions: Unknown
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Nicolas Kuzminski
>     Priority: Minor
>      Fix For: 1.2 Family

>
> Scenario:
> [struts.cfg]
> (...)
>     <action path="/show" 
>             type="org.apache.struts.tiles.actions.DefinitionDispatcherAction" 
>             parameter="definition"> 
>       <forward name="success"            path="/ok.html"/>
>       <forward name="error"              path="/err.html"/>
>     </action>
>     <action    path="/showHorarios"
>                type="com.dsigno.deltaplus.jsp.ShowHorariosAction">
>       <forward name="success"          path="/WEB-INF/includes/horarios.jsp"/>
>     </action>
> (...)
> [tiles-defs]
> (...)
>     <definition name=".empleado" extends=".dpLayout">
>         <put name="title" value="Empleado"/>
>         <put name="body" value="/empleado/index.jsp"/>
>     </definition>
>     <definition name=".horarios" path="/showHorarios.do">
>     </definition>
> (...)
> [/empleado/index.jsp]
> (...)
>                 <td> 
>                   <tiles:insert definition=".horarios"/>
>                 </td>
> (...)
> Requesting "/show.do=.empleado", gives you the /empleado/index.jsp page, but 
> instead of having the .horarios definition inserted, /empleado/index.jsp gets 
> inserted recursivelly. I mean, yo see /empleado/index.jsp inserted 
> in /empleado/index.jsp inserted in /empleado/index.jsp and so on, in the place 
> that the success page of showHorarios should be.
> I tried something similar using ForwardAction, hardcoding the definition as and 
> action parameter, and it works fine, obviously loosing the flexibilty I wanted. 
> Seems to be a DefinitionDispatcherAction bug.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira