This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot retrieve definition for form bean null

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic