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
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

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




Eclipse JET Guide
Previous Page Home Next Page


Standard JET2 Control Tags


Define content to process for an object found by the parent 'visitor' tag, provided a condition is met. The contents of this tag are evaluated if the current object of the 'visitor' iteration satisfies the 'test' XPath expression.

The 'test' XPath expression is relative to the current object of the parent 'visitor' tag. If the 'test' XPath expression is does not result in a boolean value, then it is converted to a boolean value according the the XPath 1.0 specification. In particular, if the XPath expression results in a set of objects, then 'test' is considered to be true if and only if the set is not empty.

Note that more than one 'visit' tag may be executed for the same object identified by the parent 'visitor' tag.

Tag Summary
required <c:visit test="value">
    content to process if tag condition is satisfied
full tag <c:visit test="value">
    content to process if tag condition is satisfied

Required Attributes
An expression expression, that, if true, causes the tag contents to be evaluated.

<%-- traverse a model starting at $root. $cur refers to current node --%> <c:visitor select="$root" var="cur">
<c:visit test="local-name($cur) = 'a'">
    content to process of test is true
    ... other <c:visit> tags ...

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