2008/7/21 Yannick Haudry <[EMAIL PROTECTED]>:
> Struts 1.3.9, Tiles 2.0.6 and struts-tiles2-1.4.0-SNAPSHOT.jar plugin.

This configuration does not seem compatible to me. You have to try
with a snapshot of Struts 1.4.0.

> 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.

Yuk! It seems that you found a bug!
In fact the "retValue" was supposed to be true if a definition was
found. But in fact it was misused.
Can you open a JIRA issue?
https://issues.apache.org/struts/browse/STR
(use the "tiles2-plugin")
If you can, can you create a patch about it?

Thanks
Antonio

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

Reply via email to