Hi,

I am using Struts where I have an ShowCategoriesAction that extends 
Action. In the perform method, I am reading data from the database 
and storing it in a collecion object(ArrayList). Then I am using 
request.setAttribute("categoryArray", myCollectionObject) to set it 
on the request. I have verified that the collection has actual data 
before forwarding to the JSP.

Now, when I call mapping.findForward("success") from the perform 
method, it forwards the request to a showCategories.jsp page where I 
use the following Struts tag:

<code>
<logic:iterate id="category" type="myPackage.Category"
               name="categoryArray" scope="request" >
<html:link page="/showItems.do" name="category" property="mapping">
<bean:write name="category" property="categoryName" filter="true"/>
</html:link>
</logic:iterate>
</code>

I get this error: 
<bold><code>Error 500: Cannot find bean categoryArray in scope 
request </code></bold>

I even tried to put the object on the session and the application and 
look it up in the iterate tag and still the same problem. I tried to 
print the attributes on the request object from the JSP and it did 
show the categoryArray object there. But apparantly it was null.

Can anyone help me in figuring out what the problem is. I am using 
WebSphere 4.0.3 for the Servlet container.

Thanks,
Marwan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to