OraMon.jsp 914 Bytes
<%@page import="se.lil.om.Registry"%>
<%@page import="se.lil.om.OraMon"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>OraMon Admin</title>
</head>
<body>
<% 
boolean error = false;
String errMsg = "";
if(request.getParameter("action").equals("add")) {
	error = true;
	errMsg = request.getParameter("data");
	System.out.println(errMsg);
}
%>

<% ArrayList<OraMon> monList = Registry.getList(); %>
<% if(error) { %>
<div style="background: yellow; padding: 10px; width: 100%">Error: <%= errMsg %></div>
<% } %>
<h1>OraMon Status</h1>
<p>Number of monitors: <%= monList.size() %>
</body>
</html>