<%--
  -- @(#)eventsCLI.jsp	1.4 02/03/03
  -- Copyright 2001 Sun Microsystems, Inc., All Rights Reserved.
  -- A page to display the events.
  -- @version 1.4, 02/03/03
  -- @author  Pascal Ledru
  --
  --%>

<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="/WEB-INF/tlds/app.tld" prefix="app" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>

<app:eventLog mode="events" pageSize="50"/>

<html:html locale="true">

<body>

<table>
  <tr>
    <logic:equal name="showNumber" value="true">
      <td><bean:message key="header.number"/></td>
    </logic:equal>
    <logic:equal name="showID" value="true">
      <td><bean:message key="header.eventID"/></td>
    </logic:equal>
    <td><bean:message key="header.severity"/></td>
    <td><bean:message key="header.date"/></td>
    <td><bean:message key="header.device"/></td>
    <td><bean:message key="header.deviceType"/></td>
    <td><bean:message key="header.topic"/></td>
  </tr>
  <logic:iterate id="event" name="events">
    <tr>
      <logic:equal name="showNumber" value="true">
        <td>
          <bean:write name="event" property="index"/>
        </td>
      </logic:equal>
      <logic:equal name="showID" value="true">
        <td>
          <bean:write name="event" property="eventID"/>
        </td>
      </logic:equal>
      <td>
        <bean:write name="event" property="severityValue" filter="false"/>
      </td>
      <td>
        <bean:write name="event" property="date"/>
      </td>
      <td>
        <bean:write name="event" property="device" filter="false"/>
      </td>
      <td>
        <bean:write name="event" property="deviceType" filter="false"/>
      </td>
      <td>
        <bean:write name="event" property="topic"/>
      </td>
    </tr>
  </logic:iterate>
</table>

</body>
</html:html>

