blob: b55b945ee883a62356c88fe4eafc52d6590b3b30 [file] [log] [blame]
<%@taglib uri="/taglib/jcr" prefix="jcr" %>
<%@taglib uri="/taglib/c" prefix="c" %>
<h1>Size Tag with default traverser</h1>
<jcr:session>
<h2>Size of root node: </h2>
<jcr:size node="/" traverserDepth="0" /> bytes <br/>
<jcr:properties node="/" var="prop">
<jcr:out item="${prop}"/> <br>
</jcr:properties>
<h2>Size of testA node</h2>
<jcr:size node="TestA" traverserDepth="0" /> bytes <br/>
<jcr:properties node="/TestA" var="prop">
<jcr:out item="${prop}"/><br>
</jcr:properties>
<h2>Size of A-L2 node</h2>
<jcr:size node="TestA/A-L2" traverserDepth="0" /> bytes <br/>
<jcr:properties node="/TestA/A-L2" var="prop">
<jcr:out item="${prop}"/><br>
</jcr:properties>
<h2>Size of testA node with depth=1</h2>
<jcr:size node="TestA" traverserDepth="1" /> bytes <br/>
<h2>Size of testB node</h2>
<jcr:size node="/TestB" traverserDepth="0" /> bytes <br/>
<jcr:properties node="TestB" var="prop">
<jcr:out item="${prop}"/><br>
</jcr:properties>
</jcr:session>