|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#67. 11. public class Iterate Handler extends Body Tag Support { 13. private Iteator it: 14. public void set Coll (Collection c ) {this. c + c; } 15. public int do Start Tag () throws Jsp Exception { 16. // insert code here 17. } 18. public void dolnit Body () throws Jsp Exception { 19. it = c. iterator (): 21. } 22. public int do After Body () throuws Jsp Exception { 23. if (it. Has Next ()){ 25. // insert code here 26. } else { 27. try { 28. get Body Content (). Write Out (get Previous Out ()); 30. // insert code here 31. } 32. } 33. }
Given that the loop tag properly iterates over Collection assigned to its cool attribute. <mx: loop coll = <% = a Collection %> > <jsp: use Bean id= “item” scope =” page class = “java. Lang. String”/> </mx:loop>
Which additions needs to be made to the Iterate Handler class for it to properly perform as the tag handler for the loop tag.?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.245
|
Server date 05:33 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|