struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17473] - Problem to include a jsp into an iterate tag
Date Wed, 25 Feb 2004 07:38:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17473>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17473

Problem to include a jsp into an iterate tag





------- Additional Comments From sheawh@yahoo.com.hk  2004-02-25 07:38 -------
I would like to show a list of jobs and showing who should response to the job.

So I will create a table like :
  Job Name             Respondent
  <The Job Name>       <A html <select> </select>

The Code is like: 
  <tr><td>&nbsp;</td><td>name</td><td>description</td><td>required
doc</td></tr>
    
    <nested:iterate id="prdArray" name="prdArray">
      <tr>        
        <td></td>
        <td><bean:write name="prdArray" property="name"/></td>
        <td><bean:write name="prdArray" property="desc"/></td>
        <td><bean:write name="prdArray" property="req_doc"/> </td>
        <td>
           <select>        
             <nested:iterate id="empArray" name="empArray">
               <option> <bean:write name="empArray" property="staff_name"/> 
               <option>
       	     </nested:iterate>
          </select>         
        </td>    
        <td>
        </td>
      </tr>
    </nested:iterate>
  </table>

Error output is:

type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) 
that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Cannot create iterator for this collection
 at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:471)
 at org.apache.jsp.NewProd$jsp._jspService(NewProd$jsp.java:275)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 .....  and so on...

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message