• RSS 0.91
  • RSS 1.0
  • RSS 2.0
  • ATOM 0.3
  • OPML

Logic

Note: Moslate-Tags not starting with a namespace (e.g. c: or sql:) are not recommended because they don't apply to the JSP-Standard. For an external definition of the JSTL Core Tags see java.sun.com/webservices/docs/1.2/tutorial/doc/JSTL4.html.
(To use those, you need to import logic_export)

logic
nameoutputcode
c:set
var, scope(optional), value(optional)
moved from here {c:set var="temp"}
some text
{/c:set}
moved from here
c:out
var, scope(optional)
some text is now here {c:out value="${temp}"/}
is now here
c:set
var, scope(optional), value(EL)

c:out
value(EL)
some text is now here too
(9 characters)
{c:set var="text" value="${temp}"/}
{c:out value="${text}"/}
is now here too<br/>
({c:out value="${fn:length(text)}"/} characters)
addProperty
name(optional), value(optional)

c:forEach
items(EL), var, scope(optional)
animals
0 dog
1 cat
2 joomla
{addProperty name="animals" value="dog"/}
{addProperty name="animals" value="cat"/}
{addProperty name="animals" value="joomla"/}
<table border="1">
<tr><th colspan="2">animals</th></tr>
{c:forEach items="${animals}" var="animal"}
<tr><td>{c:out value="${animal.key}"/}</td>
<td>{c:out value="${animal.value}"/}</td></tr>
{/c:forEach}
</table>
removeProperty
name(optional), property(optional), value(optional)

c:forEach
items(EL), var, scope(optional)
animals
0 dog
1 cat
{removeProperty name="animals" property="2"/}
<table border="1">
<tr><th colspan="2">animals</th></tr>
{c:forEach items="${animals}" var="animal"}
<tr><td>{c:out value="${animal.key}"/}</td>
<td>{c:out value="${animal.value}"/}</td></tr>
{/c:forEach}
</table>
c:remove
var, scope(optional)

c:forEach
items(EL), var, scope(optional)
animals
{c:remove var="animals"/}
<table border="1">
<tr><th colspan="2">animals</th></tr>
{c:forEach items="${animals}" var="animal"}
<tr><td>{c:out value="${animal.key}"/}</td>
<td>{c:out value="${animal.value}"/}</td></tr>
{/c:forEach}
</table>
jsp:include
page
Moslate for Mambo 4.5.1+/Joomla Version:0.5.5 Copyright (C) 2004 - 2005 Daniel Ecer http://de.siteof.de/ Moslate is a Mambo Component/Mambot that enables easy Moslate/Mambot creation, activated by a common syntax. (see "About", readme.moslate.php or homepage for more information) Additional copyright note: Some code fragments are taken from the Mambo Core (usually noted). Images are modified and unmodified taken from Eclipse. {jsp:include page="/administrator/components/com_moslate/README"/}
c:import
url, var(optional), scope(optional)

c:url
value, var, scope(optional)

c:param
name, value
text1 == text2? false
text2 == text3? true

part of text1:
Moslate for Mambo 4.5.1+/Joomla

part of text2:


part of text3:

{c:set var="text1"}
{c:import url="/administrator/components/com_moslate/README"/}
{/c:set}

{c:import var="text2" url="/index2.php"}
{c:param name="option" value="com_rss"/}
{c:param name="feed" value="RSS2.0"/}
{c:param name="no_html" value="1"/}
{/c:import}

{c:url var="url" value="/index2.php"}
{c:param name="option" value="com_rss"/}
{c:param name="feed" value="RSS2.0"/}
{c:param name="no_html" value="1"/}
{/c:url}

{c:import var="text3" url="${url}"/}

text1 == text2? {c:out value="${text1 == text2}"/}<br/>
text2 == text3? {c:out value="${text2 == text3}"/}<br/>
<br/>
part of text1:<br/>
{c:out value="${fn:substringBefore(text1, 'Version')}"/}<br/>
<br/>
part of text2:<br/>
{c:out value="${fn:substringBefore(text2, '/lastBuildDate')}" escapeXml="true"/}<br/>
<br/>
part of text3:<br/>
{c:out value="${fn:substringBefore(text2, '/lastBuildDate')}" escapeXml="true"/}<br/>