You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Michael Marth (JIRA)" <ji...@apache.org> on 2008/08/18 11:31:44 UTC
[jira] Commented: (SLING-567) sling.include inclides fragments in
the wrong order
[ https://issues.apache.org/jira/browse/SLING-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623294#action_12623294 ]
Michael Marth commented on SLING-567:
-------------------------------------
Request Dispatcher has the same behaviour. This jsp "a.jsp":
aaa
1<% sling.include(currentNode.getPath() + ".b.html"); %>
2<%
javax.servlet.RequestDispatcher rd = request.getRequestDispatcher("/content/myapp/mynode.b.html");
rd.include(request, response);
%>
returns: bbb bbb aaa 1 2
expected: aaa 1bbb 2bbb
(I tested this in CRX Quickstart, maybe the servlet engine matters)
> sling.include inclides fragments in the wrong order
> ---------------------------------------------------
>
> Key: SLING-567
> URL: https://issues.apache.org/jira/browse/SLING-567
> Project: Sling
> Issue Type: Bug
> Affects Versions: Scripting JSP 2.0.2
> Reporter: Michael Marth
>
> (This is observed in revision 670551)
> consider a jsp "/apps/myapp/a.jsp" which contains:
> aaa
> <% sling.include(currentNode.getPath() + ".b.html"); %>
> and another jsp "/apps/myapp/b.jsp" which contains
> bbb
> if i execute /content/myapp/mynode.a.html i get
> bbb
> aaa
> expected result is:
> aaa
> bbb
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.