• Post Reply Bookmark Topic Watch Topic
  • New Topic

error in using jstl tag  RSS feed

 
chain singh
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

an error is occur when i am using <c:forEach>

<c:forEach var="listitem" items="${list}" >


<tr><td>
${listitem}
</td></tr>

</c:forEach>

list is List type object

error is = "org.apache.jasper.JasperException: /home.jsp(14,12) According to TLD or attribute directive in tag file, attribute items does not accept any expressions"

i am using jstl 1.1.1


please give me a solution

thank you
 
Nicola Garofalo
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read jsp FAQ

http://www.coderanch.com/how-to/java/JspFaq

in particular

ElOrJstlNotWorkingAsExpected






 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That usually means you are using the wrong URI for the JSTL.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!