| Tag |
Description |
Syntax |
|
Flow Control
|
|
|
| <jml:if> |
A single conditional statement. Conditionally executes the body if the condition evaluates to true. |
<jml:if condition = "{ jmlExpression | <%= jmlExpression %> | $ jmlExpression
}" >
Body of <jml:if>. This is executed if the
condition is true.
</jml:if> |
| <jml:choose> |
A multiple conditional statement. Conditionally executes the body of the first condtion that evaluates
to true. |
<jml:choose>
<jml:when condition = "{ jmlExpression
| <%= jmlExpression %> | $ jmlExpression }" >
Body of <jml:when>. This is executed if
the condition is true.
</jml:when> +
[ <jml:otherwise>
Body of <jml:otherwise>. This is executed
if all the succeeding <jml:when> are false.
</jml:otherwise> ]
</jml:choose> |
| <jml:for> |
Looping control for iterating over a range. |
<jml:for id = "loopVariable"
from = "{ jmlExpression | <%= jmlExpression
%> | $ jmlExpression }"
to = "{ jmlExpression | <%= jmlExpression
%> | $ jmlExpression }" >
Body of <jml:for>. Iterates over the range (inclusive).
</jml:for> |
| <jml:foreach> |
Looping control for iterating over elements in a data object |
<jml:foreach id = "loopVariable"
in = "{bean.property | bean.method }"
limit = "{ jmlExpression | <%= jmlExpression
%> | $ jmlExpression }"
type = "package.class" >
Body of <jml:foreach>. Iterates once for each
element in the data structure specified by "in".
</jml:foreach> |
| <jml:return> |
Indicates response is complete. Page returns current response without further processing. |
<jml:return /> |
| <jml:include> |
Includes data in the JSP page response. |
<jml:include page = "{ relativeURL | <%= jmlExpression %> | $ jmlExpression
}" flush = "true" /> |
| <jml:forward> |
Forwards the request to an HTML file, JSP file, or servlet for processing. |
<jml:forward page = "{ relativeURL | <%= jmlExpression %> | $ jmlExpression
}" /> |
| <jml:flush> |
Flushes the buffered response stream. |
<jml:flush /> |
| |
|
|
|
Data transformation
|
|
|
| <jml:transform> |
Transforms the output of the body of this tag using the specified XSL stylesheet. |
<jml:transform href = " {URL | relativeURL | <%= jmlExpression %>
| $ jmlExpression}" >
Body of transform tag. After this body is evaluated
it is tranformed using the
XSL stylesheet named by the href attribute.
</jml:transform> |
| <jml:stylesheet> |
Synonym for <jml:transform> |
<jml:stylesheet href = " {URL | relativeURL | <%= jmlExpression
%> | $ jmlExpression}" >
Body of transform tag. After this body is evaluated
it is tranformed using the
XSL stylesheet named by the href attribute.
</jml:stylesheet> |
| |
|
|
|
Miscellaneous
|
|
|
| <jml:plugin> |
Synonym for <jsp:plugin> tag. |
See JSP syntax for description |
| |
|
|