You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/02/15 16:04:10 UTC

[jira] Resolved: (SLING-248) esps not executed quite correctly

     [ https://issues.apache.org/jira/browse/SLING-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-248.
-------------------------------------

    Resolution: Invalid

You should use the compact expression notation "${...}" instead of "<%=...%>" when including an expression inside a string such as an attribute value. So you code should read:

    posted by <a href="/microsling/content/blogs/main.html?poster=${resource.node.posterName}">
                   <%=resource.node.posterName%></a>

Please close, if this is ok for you. Thanks.

> esps not executed quite correctly
> ---------------------------------
>
>                 Key: SLING-248
>                 URL: https://issues.apache.org/jira/browse/SLING-248
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>         Environment: windows xp, java 5
>            Reporter: Michael Marth
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> I have an .esp with this code snippet:
> posted by <a href="/microsling/content/blogs/main.html?poster=<%=resource.node.posterName%>"> <%=resource.node.posterName%></a>
> the first <%=resource.node.posterName%> does not get executed, the second does.
> I experimented a bit and think that <%= %> scripts embedded in an html attribute do not get executed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.