I am not able to read field of component from page-template using dd4t,
I want to read component --> metadata --> embedded schema --> embedded field
<c:forEach var="componentPresentations" items="${pageModel.componentPresentations}" varStatus="status">
<c:if test="${componentPresentations.componentTemplate.title == 'Component Template [4 Column]'}">
<c:out value ="${componentPresentations.component.metadata[1].value.embeddedValues[0].content[0].key['key']}" />
</c:if>
</c:forEach>
I am just able to access component from line 3 given
<c:out value ="${componentPresentations.component}"/>
How do i access field of component from page?
Page --> component --> metadata --> embedded schema --> embedded field