alernative to <bean:write> in JSTL
843838Jul 23 2007 — edited Jul 24 2007Hi All,
I have a struts form bean - comForm and it has a property comArticle - which is a List of objects(bean objects).
again each bean object has some more properties e.g articleSummary.
I am using JSTL to print the articleSummary.
<c:forEach items="${comForm.comArticle}" var="article" >
<c:out value="${article.articleSummary}"/>
</c:forEach>
But my problem is have HTML tags inside, which are not getting reflected.
I also used bean:write with filter="true" like this:
<logic:present name="comForm" >
<bean:write filter="true" name="comForm" property="comArticle"/>
</logic:present>
output: ComArticle@7b30f686
I even tried this:
<logic:present name="comForm" >
<logic:present name="comArticle" >
<bean:write filter="false" name="comArticle" property="articleSummary"/>
</logic:present>
</logic:present>
output: blank :)