File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Iteration custom tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Iteration custom tag" Watch "Iteration custom tag" New topic
Author

Iteration custom tag

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
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 ]

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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 ]

[My Blog]
All roads lead to JavaRanch
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Thanks Christophe Verre..I understood now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Iteration custom tag