Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

alernative to <bean:write> in JSTL

843838Jul 23 2007 — edited Jul 24 2007
Hi 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 :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2007
Added on Jul 23 2007
3 comments
599 views