<%
int severity=0;
StringBuffer errors = new StringBuffer();
Entry[] entries = (Entry[] )pageContext.getAttribute("entries");
if(entries==null) {
	severity=4;
	errors.append("out of service");
}
else {
    severity=1;
}
        String color = "black";
        switch(severity) {
        case 1: color="lime"; break;
        case 2: color="green"; break;
        case 3: color="yellow"; break;
        case 4: color="red"; break;
        }
        pageContext.setAttribute("color", color);
        pageContext.setAttribute("errors", errors+"");
%>
