Sent: Wednesday, March 12, 2003 5:31
AM
Subject: Re: Meeting
tmrw
Can anybody tell me why the following code:
<c:forEach begin="1" end="1">
<tr><td>2</td></tr>
</c:forEach>
would yield the following errors:
Semantic Error: In type "ForEachTag", the
checked exception "JspTagException" specified by method "java.lang.Object
getCurrent() throws javax.servlet.jsp.JspTagException;", inherited from
type "javax.servlet.jsp.jstl.core.LoopTagSupport", is not assignable to
any exception in the throws clause of the overridden method
"java.lang.Object getCurrent();" declared in type
"javax.servlet.jsp.jstl.core.LoopTag".
/pages/user/listBody.jsp:1: Semantic Error: In
type "ForEachTag", the method "java.lang.Object getLoopStatus() throws
javax.servlet.jsp.JspTagException;", inherited from type
"javax.servlet.jsp.jstl.core.LoopTagSupport", does not have the same
return type as the method "javax.servlet.jsp.jstl.core.LoopTagStatus
getLoopStatus();", inherited from type
"javax.servlet.jsp.jstl.core.LoopTag.
/pages/user/listBody.jsp:1: Semantic Error: In
type "ForEachTag", the checked exception "JspTagException" specified by
method "java.lang.Object getLoopStatus() throws
javax.servlet.jsp.JspTagException;", inherited from type
"javax.servlet.jsp.jstl.core.LoopTagSupport", is not assignable to any
exception in the throws clause of the overridden method
"javax.servlet.jsp.jstl.core.LoopTagStatus getLoopStatus();" declared in
type "javax.servlet.jsp.jstl.core.LoopTag".
/pages/user/listBody.jsp:39: Semantic Error: A
candidate for type "ForEachTag" was found, but it is invalid and needs to
be fixed before this type will successfully compile. '
Thanks,
Geeta