Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Repeat Tag

Patricia Fulk
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am hoping I am putting this in the correct forum. If I am not I appologize.
I am using WebSphere's <tsx:repeat> tag and I want to know how it works. The way I am using it is as follows:

The property="begin" sets an array index to zero and the property="next" increments the array index. The property="data" returns the next array element equal at the index we have incremented to.
The problem I am facing is how does the tag know when it has reached the last element in the array. The doAfterBody() would do just as it says run after the body is implemented. Wouldn't you get an array index out of bounds exception for the property="next"?
I would really appreciate it if someone could help me out. This is really bugging me.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic