Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot retrieve definition for form bean null

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic