• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in c:forEach

 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have this below code in jsp but i get a blank page what could be the problem.I call the jsp directly from my browser

<%
String[] testname={"1","2","3"};
request.setAttribute("arr",testname);
%>
<c:forEach items="${arr}" var="j">
${j}
</c:forEach>

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using JSTL correctly ? Check this.
 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
Problem is resolved.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic