aspose file tools*
The moose likes Struts and the fly likes  Cannot retrieve definition for form bean null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Cannot retrieve definition for form bean null" Watch " Cannot retrieve definition for form bean null" New topic
Author

Cannot retrieve definition for form bean null

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
I got the above error when I ran my struts app. I am
not
using a form for this action since I only need to
display it. And I am using Tiles framework for this.
I put a collection into session and use logic:iterate 's
property attribute to get it on jsp. Is this the right way to
do it?
Appreciate any help.
Bernardus Irmanto
Greenhorn

Joined: Oct 03, 2003
Posts: 23
yes you can,
but I prefer to pass a jsp bean containing collection to the request object, and the use the logic:iterate tag to iterate over the collection.
when you pass the arrayList in the request object, you can access it using collection attributes. You need to specify an expression to get that arraylist, like
<logic:iterate collection="<%=request.getAttribute(...)%>" id="..." type="...">
rgds
beN
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot retrieve definition for form bean null