Geeta/Classmates:
 
I have the "forEach" tag working in my current work project while using Tomcat. I will see if I can get to work with Resin sometime today. As mentioned in other posts I have also had trouble with getting things to work with Resin lately, perhaps this is another symptom. I have been very busy but hope to catch up today. I will keep you posted later.
 
Dave S
-----Original Message-----
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 11:14 AM
To: Mike Deegan
Cc: Vic Cekvenich; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Meeting tmrw

Mike:

Thank you so much for your note: I thought I was going nuts!! .. Like you I gave up on the forEach tag and went back to old-style iteration tags.. I got some other JSTL tags to work though - like c:choose, c:if, etc...I tried to get c:url to work but I had to combine JSTL with "<%=urlval%>" kind of thing and though I didn't crash, the url wasn't correct. So I went back to using <html:link..

I have been searching for a solution a lot and have found other people have found problems with, in particular, Resin's implementation of this particular JSTL tag. Thank you **so** much for your note: I thought I was going nuts!! .. Like you I gave up on the forEach tag and went back to old-style iterate tags.. (In fact a google search gave me an error report on tag-lib-user written yesterday by a Mike: was that you?!)  However, it also seemed as if later implementations had solved this bug, so I don't know what to think..

Shall surely let you know if I find any solution..though it seems pretty unlikely at this point..!

Geeta

Mike Deegan wrote:

Geeta I have been getting the same type of problems with forEach tag  and have not been able to solve it !! A candidate for type "ForEachTag" was found, but it is invalid and needs to be fixed before this type will successfully compile. Have sent off numerous emails in vain. Let me know if you solve it. I am resorting back to using logic:iterate if I can't progress using JSTL. Mike  ----- Original Message -----
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

Reply via email to