User Tools

Site Tools


org.gramar.base:tag.stringtokens

This is an old revision of the document!


stringTokens Tag

The stringTokens tag Parses a string into tokens and iterates over the tokens.

<c:stringTokens string=“” var=“” delimeter=“” delimetedBy=“” reverse=“” >

Attribute Kind Required Purpose
string string yes The string to be parsed
var string yes The name of a context variable to be associated with the current token in the iteration. The variable is scoped to the body of the tag.
delimeter string no A string to be written after every node except the last
delimetedBy string no The delimiter that separates the tokens in the original string (default: space)
reverse boolean no True if the list of tokens is to be iterated in reverse order

Usage and examples

Place a `taglib` element within `<taglibs>` element in the gramar.config file in the root of your gramar:

  <taglibs>
      <taglib  prefix="c" extension="org.gramar.base" />
  </taglibs>

Return to index

org.gramar.base/tag.stringtokens.1466983937.txt.gz · Last modified: 2016/06/26 23:32 by bradbouldin