Java Doc for IterateTag.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » taglib » logic » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » struts 1.3.8 » org.apache.struts.taglib.logic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.jsp.tagext.BodyTagSupport
   org.apache.struts.taglib.logic.IterateTag

All known Subclasses:   org.apache.strutsel.taglib.logic.ELIterateTag,  org.apache.struts.taglib.nested.logic.NestedIterateTag,
IterateTag
public class IterateTag extends BodyTagSupport (Code)
Custom tag that iterates the elements of a collection, which can be either an attribute or the property of an attribute. The collection can be any of the following: an array of objects, an Enumeration, an Iterator, a Collection (which includes Lists, Sets and Vectors), or a Map (which includes Hashtables) whose elements will be iterated over.
version:
   $Rev: 471754 $ $Date: 2004-11-03 14:20:47 -0500 (Wed, 03 Nov 2004)
version:
   $


Field Summary
protected  Objectcollection
     The collection over which we will be iterating.
protected  Stringid
     The name of the scripting variable to be exposed.
protected  StringindexId
     The name of the scripting variable to be exposed as the current index.
protected  Iteratoriterator
     Iterator of the elements of this collection, while we are actually running.
protected  Stringlength
     The length value or attribute name (<=0 means no limit).
protected  intlengthCount
     The number of elements we have already rendered.
protected  intlengthValue
     The actual length value (calculated in the start tag).
protected static  MessageResourcesmessages
     The message resources for this package.
protected  Stringname
     The name of the collection or owning bean.
protected  Stringoffset
     The starting offset (zero relative).
protected  intoffsetValue
     The actual offset value (calculated in the start tag).
protected  Stringproperty
     The property name containing the collection.
protected  Stringscope
     The scope of the bean specified by the name property, if any.
protected  booleanstarted
    
protected  Stringtype
     The Java class of each exposed element of the collection.


Method Summary
public  intdoAfterBody()
     Make the next collection element available and loop, or finish the iterations if there are no more elements.
public  intdoEndTag()
     Clean up after processing this enumeration.
public  intdoStartTag()
     Construct an iterator for the specified collection, and begin looping through the body once per element.
public  ObjectgetCollection()
    
public  StringgetId()
    
public  intgetIndex()
    

Return the zero-relative index of the current iteration through the loop.

public  StringgetIndexId()
    
public  StringgetLength()
    
public  StringgetName()
    
public  StringgetOffset()
    
public  StringgetProperty()
    
public  StringgetScope()
    
public  StringgetType()
    
public  voidrelease()
     Release all allocated resources.
public  voidsetCollection(Object collection)
    
public  voidsetId(String id)
    
public  voidsetIndexId(String indexId)
    
public  voidsetLength(String length)
    
public  voidsetName(String name)
    
public  voidsetOffset(String offset)
    
public  voidsetProperty(String property)
    
public  voidsetScope(String scope)
    
public  voidsetType(String type)
    

Field Detail
collection
protected Object collection(Code)
The collection over which we will be iterating.



id
protected String id(Code)
The name of the scripting variable to be exposed.



indexId
protected String indexId(Code)
The name of the scripting variable to be exposed as the current index.



iterator
protected Iterator iterator(Code)
Iterator of the elements of this collection, while we are actually running.



length
protected String length(Code)
The length value or attribute name (<=0 means no limit).



lengthCount
protected int lengthCount(Code)
The number of elements we have already rendered.



lengthValue
protected int lengthValue(Code)
The actual length value (calculated in the start tag).



messages
protected static MessageResources messages(Code)
The message resources for this package.



name
protected String name(Code)
The name of the collection or owning bean.



offset
protected String offset(Code)
The starting offset (zero relative).



offsetValue
protected int offsetValue(Code)
The actual offset value (calculated in the start tag).



property
protected String property(Code)
The property name containing the collection.



scope
protected String scope(Code)
The scope of the bean specified by the name property, if any.



started
protected boolean started(Code)
Has this tag instance been started?



type
protected String type(Code)
The Java class of each exposed element of the collection.





Method Detail
doAfterBody
public int doAfterBody() throws JspException(Code)
Make the next collection element available and loop, or finish the iterations if there are no more elements.
throws:
  JspException - if a JSP exception has occurred



doEndTag
public int doEndTag() throws JspException(Code)
Clean up after processing this enumeration.
throws:
  JspException - if a JSP exception has occurred



doStartTag
public int doStartTag() throws JspException(Code)
Construct an iterator for the specified collection, and begin looping through the body once per element.
throws:
  JspException - if a JSP exception has occurred



getCollection
public Object getCollection()(Code)



getId
public String getId()(Code)



getIndex
public int getIndex()(Code)

Return the zero-relative index of the current iteration through the loop. If you specify an offset, the first iteration through the loop will have that value; otherwise, the first iteration will return zero.

This property is read-only, and gives nested custom tags access to this information. Therefore, it is only valid in between calls to doStartTag() and doEndTag().




getIndexId
public String getIndexId()(Code)



getLength
public String getLength()(Code)



getName
public String getName()(Code)



getOffset
public String getOffset()(Code)



getProperty
public String getProperty()(Code)



getScope
public String getScope()(Code)



getType
public String getType()(Code)



release
public void release()(Code)
Release all allocated resources.



setCollection
public void setCollection(Object collection)(Code)



setId
public void setId(String id)(Code)



setIndexId
public void setIndexId(String indexId)(Code)



setLength
public void setLength(String length)(Code)



setName
public void setName(String name)(Code)



setOffset
public void setOffset(String offset)(Code)



setProperty
public void setProperty(String property)(Code)



setScope
public void setScope(String scope)(Code)



setType
public void setType(String type)(Code)



Fields inherited from javax.servlet.jsp.tagext.BodyTagSupport
protected BodyContent bodyContent(Code)(Java Doc)

Methods inherited from javax.servlet.jsp.tagext.BodyTagSupport
public int doAfterBody() throws JspException(Code)(Java Doc)
public int doEndTag() throws JspException(Code)(Java Doc)
public void doInitBody() throws JspException(Code)(Java Doc)
public int doStartTag() throws JspException(Code)(Java Doc)
public BodyContent getBodyContent()(Code)(Java Doc)
public JspWriter getPreviousOut()(Code)(Java Doc)
public void release()(Code)(Java Doc)
public void setBodyContent(BodyContent b)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.