out
Translates and prints a value. It is typically used to print locale-specific output, but also includes limited support for simple if-else clauses.
Tag Information | |
---|---|
Tag Class | org.loom.tags.core.OutTag |
Body Content | scriptless |
Dynamic Attributes | true |
Example | <l:out value="foo"/> <l:out value="add" if="${!l:contains(items, item)}" else="remove" /> |
Attributes
Name | Description | Flags |
---|---|---|
value | the string value to get translated |
requiredrtexprvalue
|
else | If the if clause is false and else is not null,
print else instead of value
|
rtexprvalue
|
escapeHtml | true to escape HTML codes, default false for OutTag, and true for OutPropertyTag |
rtexprvalue
|
if | False to skip tag execution (default true). |
rtexprvalue
|
scope | If var is not null, this is the scope where the value will be stored.
Possible values are page (default), request ,
session and application .
|
rtexprvalue
|
translate | true to translate the value before output, default true |
rtexprvalue
|
var | if not null, the value will be stored as an attribute instead of rendered in the page |
rtexprvalue
|