if "Book" is the name of the bean in scope for your
JSP, try this:
<logic:iterate id="bookElement" name="Book">
<bean:write name="bookElement"
property="EnglishISBN"/>
...
...
..
</logic:iterate>
--- [EMAIL PROTECTED] wrote:
> Hi Rich,
>
> These are the changes I have made so far :
>
> Books.jsp :
> <bean:define id="newArrayList" name="newArrayList"
> scope="request"/>
> <logic:iterate id="conn" name="newArrayList" >
> <tr>
> <td>
> <bean:write name="conn"
> property="EnglishISBN" />
>
> </td>
> <td>
> <bean:write name="conn"
> property="EnglishAUTHOR" />
> </td>
> </tr>
> </logic:iterate>
>
>
> BookAction :
>
> ArrayList newArrayList = new ArrayList();
>
> ResultSet res = this.getResultSet();
> while (res.next()) {
> Book conn = new Book();
>
> conn.setEnglishISBN(res.getString("isbn"));
>
> conn.setEnglishAUTHOR(res.getString("author"));
> newArrayList.add(conn);
> }
>
>
> request.setAttribute("Book", newArrayList);
>
>
> return (mapping.findForward("techbooks"));
>
>
> And I still get a 500 HTTP Status exception :
>
> org.apache.jasper.JasperException: Cannot find bean
> newArrayList in scope
> request
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> at
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> -----------
> -----------
>
> root cause
> javax.servlet.ServletException: Cannot find bean
> newArrayList in scope
> request
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530)
> at
>
org.apache.jsp.Books_jsp._jspService(Books_jsp.java:427)
> at
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>
>
>
>
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]