• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

do after body problem

 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having trouble in presenting movie list in jsp.




jsp code


result

why I am getting only 'Iron Man' four times instead of all movies.
please explain

best regards,
omi sharma
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're getting the iterator in doAfterBody. Why don't you put the iterator as an instance member, and remove the counter ?

Note that the body will be evaluated after doStartTag, so you may have to check if cMovie exists or not in your JSP.
[ August 29, 2008: Message edited by: Christophe Verre ]
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now,it's working fine.

thanks for teaching me the hack.

by the way,If I use simple tag instead of classic one ,is there any harm?

Because I can do simple tag without any muss and fuss.

best regards,
omi
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any harm?

no
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Chris , you are really big feller
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic