Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse JET Guide
Previous Page Home Next Page

<c:stringTokens>

Standard JET2 Control Tags

stringTokens

Parses a string into tokens and iterates over its content for each token.


Tag Summary
required <c:stringTokens string="value" name="value">
    content to be repeated for each iteration
</c:stringTokens>
full tag <c:stringTokens string="value" name="value" delimitedBy="value" delimiter="value" reverse="value" tokenLength="value">
    content to be repeated for each iteration
</c:stringTokens>

Required Attributes
string The string to be parsed
name The variable name to be associated with the temporary model nodes describing the tokens. Nested tags can use this variable name to refer to the temporary node.

Optional Attributes
delimitedBy The tokens that delimit the tokens in the string
delimiter The string to write after every iteration except the last
reverse A true/false value indicating whether the tokens should be iterated over first-to-last (false) or last-to-first (true)
tokenLength Default description for attribute tokenLength

Example
<%-- break a,bc,cde into tokens, and iterate over them --%>
<c:stringTokens string="a,bc,cde" name="curStr" delimitedBy=",">
    value: <c:get select="$curStr/@value"/>
    index: <c:get select="$curStr/@index"/>
    delimiter: <c:get select="$curStr/@delimiter"/>
    first: <c:get select="$curStr/@first"/>
    last: <c:get select="$curStr/@last"/>
</c:stringTokens>


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire