Dear all,

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.doHandlePageException(PageContextImpl.java:825)
        at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
        at 
org.apache.jsp.WEB_002dINF.jsp.multimonitor_jsp._jspService(multimonitor_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]

Reply via email to