I pulled this code from left.jsp
- Code: Select all
<c:if test="${model.statistics.songCount gt 0}">
<div class="detail">
<b>Library Statistics:</b><br/>
<fmt:message key="left.statistics">
<fmt:param value="${model.statistics.artistCount}"/>
<fmt:param value="${model.statistics.albumCount}"/>
<fmt:param value="${model.statistics.songCount}"/>
<fmt:param value="${model.bytes}"/>
<fmt:param value="${model.hours}"/>
</fmt:message>
</div>
</c:if>
Where I'm trying to insert that is at the very bottom of the home.jsp
- Code: Select all
<c:if test="${not empty model.welcomeMessage}">
<td style="vertical-align:top;width:20em">
<div style="padding:0 1em 0 1em;border-left:1px solid #<spring:theme code="detailColor"/>">
<sub:wiki text="${model.welcomeMessage}"/>
</div>
</td>
</c:if>
</tr>
</table>
So what I create is ...
- Code: Select all
<c:if test="${not empty model.welcomeMessage}">
<td style="vertical-align:top;width:20em">
<div class="detail">
<b>Library Statistics:</b><br/>
<fmt:message key="left.statistics">
<fmt:param value="${model.statistics.artistCount}"/>
<fmt:param value="${model.statistics.albumCount}"/>
<fmt:param value="${model.statistics.songCount}"/>
<fmt:param value="${model.bytes}"/>
<fmt:param value="${model.hours}"/>
</fmt:message><br/><br/>
</div>
<div style="padding:0 1em 0 1em;border-left:1px solid #<spring:theme code="detailColor"/>">
<sub:wiki text="${model.welcomeMessage}"/>
</div>
</td>
</c:if>
</tr>
</table>
When I do that I get the following displayed above my welcome message:
Library Statistics:
null artists
null albums
null songs
null (~ null hours)
The problem I believe lies in the object references of left.statistics or model.statistics. Anyone know how I should modify these to get it to work?
Note that changing left.statistics to model.statistics doesn't help, so it's probably the model. references. Changing left.statistics to model.statistics results in:
Library Statistics:
???model.statistics???
________
