Tag library name: util-taglib
Index of Tags and Functions. | |
Tags |
Authors: | |||
Name | Institution | Role | |
E. Reinaldo Barreiro | Technical University of Eindhoven (TU/e) | info@mathdox.org | Main author |
Description: |
|
Download and Install: | ||||||
|
Tags |
1-active-filter (tag). | |
Description |
Filters the body replacing <, <, >, " and & with the corresponding escaping unicode representations. The body is evaluated, that mean it is evaluated as other JSP code and the result is then filtered. See also inert-filter |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.util.FilterTag |
Attributes: | |||
This tag has no attributes. |
Examples: | |
Snippet 1: |
<!-- The body is executed the parameters replaced and then filtered |
2-active-substring (tag). | |
Description |
Returns the substring (from the body) after the start attribute and before the end attribute. The body is evaluated. |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.util.SubStringTag |
Attributes: | |||
Name | Required | Dynamic | Description |
end | false | true | The ending substring. If missing the end is assumed. |
start | false | true | The starting substring. If missing the beginnig is assumed. |
Examples: | |
Snippet 1: |
<!-- The body is executed (the parameters replaced). --> <util:active-substring start="<OMOBJ>" end="</OMOBJ>"> <OMOBJ> <OMA> <OMS name="cd" name="plus"/> <OMI><c:out value="${param.a}"/></OMI> <OMI><c:out value="${param.b}"/></OMI> </OMA> </OMOBJ> </util:active-substring> |
3-doonlyonce (tag). | |
Description |
This tag executes its body only once. You may have several doonlyonce tags in a page they are identified by the var attribute (a variable is created and placed in the scope to know the tag has already been executed once). By default the attribute scope is set to page, but you can also use session, request and application. The attribute scope determines the extend of the uniqueness of the doonlyonce tag (once per page, once per request, once per session or once per application. |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.util.DoOnlyOnceTag |
Attributes: | |||
Name | Required | Dynamic | Description |
scope | false | true | The scope of the action. The default value is page. |
var | true | false | The variable name identifying this action (in a certain scope). |
Examples: | |
Snippet 1: |
<!-- The body is erased after execution. --> <util:doonlyonce var="COMPUTATION_1" scope="session"> <eval value="${GapPhrasebook}" method="EVAL"> <OMOBJ> <OMA> <OMS name="plus" cd="arith1"/> <OMI>${param.A}</OMI> <OMI>${param.B}</OMI> </OMA> </OMOBJ> </eval> </util:doonlyonce> |
4-inert-filter (tag). | |
Description |
Filters the body replacing <, <, >, " and & with the corresponding escaping unicode representations. The body is not evaluated, it is passed as a string to the tag. See also active-filter |
Body Content: |
tagdependent |
Tag Class: |
nl.tue.win.riaca.taglib.util.FilterTag |
Attributes: | |||
This tag has no attributes. |
Examples: | |
Snippet 1: |
<!-- The body is not executed. So, the parameters are not replaced. |
5-inert-substring (tag). | |
Description |
Returns the substring (from the body) after the start attribute and before the end attribute. The body is not evaluated. |
Body Content: |
tagdependent |
Tag Class: |
nl.tue.win.riaca.taglib.util.SubStringTag |
Attributes: | |||
Name | Required | Dynamic | Description |
end | false | true | The ending substring. If missing the end is assumed. |
start | false | true | The starting substring. If missing the beginnig is assumed. |
Examples: | |
Snippet 1: |
<!-- The body is not executed (the parameters not replaced). --> <util:inert-substring start="<OMOBJ>" end="</OMOBJ>"> <OMOBJ> <OMA> <OMS name="cd" name="plus"/> <OMI><c:out value="${param.a}"/></OMI> <OMI><c:out value="${param.b}"/></OMI> </OMA> </OMOBJ> </util:inert-substring> |
6-silent (tag). | |
Description |
Erases its contents after executing it. Very useful if you are doing some computations adn you don't want them to appear in your page. |
Body Content: |
JSP |
Tag Class: |
nl.tue.win.riaca.taglib.util.SilentTag |
Attributes: | |||
This tag has no attributes. |
Examples: | |
Snippet 1: |
<!-- The body is erased after execution. --> <util:silent> <eval value="${GapPhrasebook}" method="EVAL"> <OMOBJ> <OMA> <OMS name="plus" cd="arith1"/> <OMI>${param.A}</OMI> <OMI>${param.B}</OMI> </OMA> </OMOBJ> </eval> </util:silent> |