Empty variables when using embedded layout components 
------------------------------------------------------

                 Key: STS-886
                 URL: http://www.stripesframework.org/jira/browse/STS-886
             Project: Stripes
          Issue Type: Bug
          Components: Tag Library
    Affects Versions: Release 1.5.7
         Environment: Tomcat 6.0.24, Win7, Eclipse
            Reporter: Robert P.


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>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to