• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iteration custom tag

 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
54.Which two are true about the JSTL core iteration custom tags? (Choose two.)
A. It may iterate over arrays, collections, maps and strings.
B. The body of the tag may contain EL code, but not scripting code.
C. When looping over collections, a loop status object may be used in the tag body.
D. It may iterate over a map, but only the key of the mapping may be used in the tag body.
E. When looping over integers (for example begin1='1' end='10'), a loop status object may not be used in the tag body.


Answres are A,C .

How C is correct? why can't others correct , Please clarify this
[ August 12, 2008: Message edited by: Chintu sirivennela ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the c:forEach tag in the JSTL specification and try to understand how to use the "varStatus" attribute. This should clear your doubts.
[ August 12, 2008: Message edited by: Christophe Verre ]
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe Verre..I understood now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic