Author: rwatler
Date: Wed Aug 5 19:32:04 2009
New Revision: 801378
URL: http://svn.apache.org/viewvc?rev=801378&view=rev
Log:
remove JDK 5 syntatic sugar from JSP
Modified:
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/j2-admin/src/webapp/WEB-INF/view/cache/cacheMonitor.jsp
Modified:
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/j2-admin/src/webapp/WEB-INF/view/cache/cacheMonitor.jsp
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/j2-admin/src/webapp/WEB-INF/view/cache/cacheMonitor.jsp?rev=801378&r1=801377&r2=801378&view=diff
==============================================================================
---
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/j2-admin/src/webapp/WEB-INF/view/cache/cacheMonitor.jsp
(original)
+++
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/j2-admin/src/webapp/WEB-INF/view/cache/cacheMonitor.jsp
Wed Aug 5 19:32:04 2009
@@ -15,6 +15,7 @@
limitations under the License.
--%>
+<%...@page import="java.util.Iterator"%>
<%...@page import="java.util.List"%>
<%...@page import="java.text.DecimalFormat"%>
<%...@page import="java.text.NumberFormat"%>
@@ -50,7 +51,7 @@
<th class="portlet-section-subheader" style="text-align:
right"><fmt:message key="cachemonitor.label.disksize"/></td>
<th class="portlet-section-subheader" style="text-align:
right"><fmt:message key="cachemonitor.label.avgget"/></td>
<th class="portlet-section-subheader" style="text-align:
right"><fmt:message key="cachemonitor.label.hits"/></td>
- <th class="portlet-section-subheader"style="text-align:
right"><fmt:message key="cachemonitor.label.misses"/></td>
+ <th class="portlet-section-subheader" style="text-align:
right"><fmt:message key="cachemonitor.label.misses"/></td>
<th class="portlet-section-subheader" style="text-align:
right"><fmt:message key="cachemonitor.label.evictions"/></td>
<th class="portlet-section-subheader"> </td>
<th class="portlet-section-subheader" style="text-align:
right"><fmt:message key="cachemonitor.label.inmemsize"/></td>
@@ -62,10 +63,10 @@
NumberFormat pf = new DecimalFormat("##0.000");
NumberFormat nf = new DecimalFormat("###,###,##0");
-for (CacheMonitorState state : states)
+for (Iterator statesIter = states.iterator(); statesIter.hasNext();)
{
+ CacheMonitorState state = (CacheMonitorState)statesIter.next();
%>
-
<tr>
<td class="portlet-section-body"><%=state.getCacheName()%></td>
<td class="portlet-section-body" style="text-align:
right"><%=nf.format(state.getMaxElementsInMemory())%></td>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]