You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Volker Krebs <vo...@abas.de> on 2003/03/24 10:22:37 UTC

[tiles] tiles:insert not working for relative path

Hello,

I've just updated our system from struts-1.1b2 to struts-1.1rc1.
It seems that <tiles:insert page=""/> only works for an absolute Path now.

<tiles:insert page="/path/to/jsp/MyJSP.jsp" flush="true"/>
is working while
<tiles:insert page="MyJSP.jsp" flush="true"/>
is not working.
MyJSP.jsp is in the same Directory the other JSP is.

Can anyone confirm that ? I didn't find a bug entry for that.
Or has something changed in RC1 ?

Thanks.

Volker



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [tiles] tiles:insert not working for relative path

Posted by Volker Krebs <vo...@abas.de>.
Hello,

Cedric Dumoulin wrote:
>   When you use Tiles, you should better use absolute paths (relative to
> the application). This is because you never know from where a tiles is
> inserted, and so you don't know to what the path is relative with.
> 
>   The only change that can explain the behavior change between 1.1b2 and
> 1.1RC1 is the internal use of RequestDispatcher.include() instead of
> PageContext.include(). This later accept relative paths, while the first
> not.
>   Try to use the latest nightly build instead of the rc1: we have revert
> to a call to PageContext.include(). So, your application should work again.
>   Let us know the result.

I've tried it with the latest nightly build. And it works fine.

Thanks.

Volker


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [tiles] tiles:insert not working for relative path

Posted by Cedric Dumoulin <ce...@apache.org>.
  Hi,

  When you use Tiles, you should better use absolute paths (relative to 
the application). This is because you never know from where a tiles is 
inserted, and so you don't know to what the path is relative with.

  The only change that can explain the behavior change between 1.1b2 and 
1.1RC1 is the internal use of RequestDispatcher.include() instead of 
PageContext.include(). This later accept relative paths, while the first 
not.
  Try to use the latest nightly build instead of the rc1: we have revert 
to a call to PageContext.include(). So, your application should work again.
  Let us know the result.
   Cedric

Volker Krebs wrote:

> Hello,
>
> I've just updated our system from struts-1.1b2 to struts-1.1rc1.
> It seems that <tiles:insert page=""/> only works for an absolute Path 
> now.
>
> <tiles:insert page="/path/to/jsp/MyJSP.jsp" flush="true"/>
> is working while
> <tiles:insert page="MyJSP.jsp" flush="true"/>
> is not working.
> MyJSP.jsp is in the same Directory the other JSP is.
>
> Can anyone confirm that ? I didn't find a bug entry for that.
> Or has something changed in RC1 ?
>
> Thanks.
>
> Volker
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org