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

Can't display an ArrayList using nested:iterate

 
Karl Beowulph
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy all.

I've got a strange problem.

On one of my .jsp's I have to display the details (records) of a bean. Simple enough.

The problem is that it won't display. I have no explanation.

prepare.java


display.jsp


Now, the strange thing is that the property rows is empty for some reason (verified with a small scriptlet), even though all the other data that I assign to "myForm" shows up on the page and, right before I return the mapping.findForward, I double check to make sure that there is something inside rows (there is).

I have no explanation for this. Of the several dozen pages I've got (many of which I do very similar things) this is the only one doing this.

Are there are known bugs with nested or ArrayLists in Struts that I'm not aware of, or any other reason why it might be acting like this?

Thanks
 
Karl Beowulph
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I psuedo-solved the problem.

It seems that I can't pass any ArrayLists or Lists to the form for some reason with that one particular page (Always empties... have no idea why).

Instead I just threw the list into the request and retrieved it on the jsp.

Not very clean, but it did work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic