Empty variables when using embedded layout components

Description

I discovered a strange behaviour when i was using layout and component tags. Look at the example:

My main jsp page:
<s:layout-render name="/WEB-INF/layoutPage.jsp">
<s:layout-component name="variableSetByUsingComponentTag">anyValue</s:layout-component>
</s:layout-render>

Working version of layoutPage.jsp:

<s:layout-definition>
<c:set var="targetVariable" value="${variableSetByUsingComponentTag}" />
${targetVariable} --> prints "anyValue"
</s:layout-definition>

Not working version of layoutPage.jsp:

<s:layout-definition>
<c:set var="targetVariable" >${variableSetByUsingComponentTag}</c:set>
${targetVariable} --> empty
</s:layout-definition>

Environment

Tomcat 6.0.24, Win7, Eclipse

Status

Assignee

Unassigned

Reporter

PeterP

Labels

Tester

None

Components

Affects versions

Release 1.5.7

Priority

Major
Configure