reset password
Author Message
nehabhatt
Posts: 9
Posted 10:49 May 20, 2009 |

Hello,

       I am getting error while submitting comments to the database. Comments are stored in database when i click submit button but it gives an error on comment.jsp page where i am displaying comments.

org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/blog/comment.jsp at line 40

37: </security:authorize>

38:

39: <br/>

40: <c:forEach var="entry" items="${comment}" >

41: <br/>

42: ${entry.content}

43: <br/>

 

javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in &lt;forEach&gt;

 

Here on jsp page i have included  <%@ include file="/WEB-INF/jsp/include/taglib.jspf"%>

Attachments:
Last edited by nehabhatt at 10:52 May 20, 2009.
adithya.raghuraman
Posts: 7
Posted 11:58 May 20, 2009 |

Firstly, I think due to some reason, the "comments" attribute is not storing a list ( or an array ) for the forEach tag to work.

Secondly, Are you doing the comments listing? I think that is included as a part of homework 6?

 

 

nehabhatt
Posts: 9
Posted 12:22 May 20, 2009 |

Thanks,

Problem solved.