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!

New to jstl - Getting TLD error with <c:out>

795672Feb 18 2009 — edited Feb 23 2009
I am getting this error when I try and use <c:out>

According to TLD or attribute directive in tag file, attribute value does not accept any expressions

I have only just started using jstl on the work I am starting today, after reading afew tutorials I still cant get the <c:out> to print a variable, although the tutorials do it this way. What I am trying to do is get a handle on an arraylist of links, and then for each link in the array list print its text value:
  
<jsp:useBean id="menu" scope="request" class="project.beans.HandbookMenuBean"/>

<c:forEach var="link" items="${menu.links}">
  <c:out value="${link.linkText}"/>
</c:forEach>
can anybody help me out please?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2009
Added on Feb 18 2009
6 comments
177 views