I have removed struts-el.jar, replaced jstl.jar and standard.jar with those from jakarta-taglibs-standard-1.1.2 and replaced the <html-el:link> tag with the <html:link> one.
That does not make a difference, <html:link> does not find the bean either. Best regards Vincent -----Original Message----- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: jeudi 8 septembre 2005 15:49 To: Struts Users Mailing List Subject: RE: nested <c:forEach> and <html-el:link> If you're using Tomcat 5, a JSP 2.0 container, you shouldn't use Struts-EL. Just use the plain Struts jar, and make sure your web.xml uses the Servlet 2.4 schema. > -----Original Message----- > From: Lombart Vincent (DBB) [mailto:[EMAIL PROTECTED] > > Does anybody know why the following JSP code does not work: > > <table border="1" cellspacing="0"> > <tbody> > <c:forEach items="${monitorBean.rows}" var="irow"> > <tr> > <c:forEach items="${irow.columns}" var="icol"> > <td><html-el:link action="monitor" > paramId="monitorName" paramName="icol"> > <c:out value="${icol}"/></html-el:link></td> > </c:forEach> > </tr> > </c:forEach> > </tbody> > </table> > > "monitorBean" contains rows, and each row contains columns > (of type String). > > The JSP code should build a table from this bean, displaying > one String in each cell, with a hyperlink of the type > ".../monitor.do?monitorName=xxx". > > However, I get the error: > 2005-09-08 11:54:47,082 ERROR InsertTag - ServletException in > '/WEB-INF/jsp/multimonitor.jsp': Cannot find bean icol in any scope > javax.servlet.ServletException: Cannot find bean icol in any scope > at > org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio > n(PageContextImpl.java:825) > at > org.apache.jasper.runtime.PageContextImpl.handlePageException( > PageContextImpl.java:758) > at > org.apache.jsp.WEB_002dINF.jsp.multimonitor_jsp._jspService(mu ltimonitor_jsp.java:83) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > ... > > I have tried to modify "icol" to be a bean with a String > property rather than a simple String, but it does not work > either. If I remove the <html-el:link> part, everything works > perfectly, i.e. <c:out> is able to find "icol". I have put > some code before the <html-el:link> that shows that "icol" is > defined in page scope. I have used <html-el:link ... > paramName="irow"> and it finds "irow", although "irow" is > defined just like "icol". > > I am using Tomcat 5.0.25 and Struts 1.2.7 with the included > struts-el.jar. > > Thanks in advance to anybody who can give me an answer... > > Best regards > > -------------------------------------- > Dexia Bank disclaimer : > http://www.dexia.be/maildisclaimer.htm > -------------------------------------- > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------- Dexia Bank disclaimer : http://www.dexia.be/maildisclaimer.htm -------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]