Skip to content

Instantly share code, notes, and snippets.

@theresajayne
Created August 23, 2011 13:43
Show Gist options
  • Save theresajayne/1165152 to your computer and use it in GitHub Desktop.
Save theresajayne/1165152 to your computer and use it in GitHub Desktop.
<%@page import="uk.co.inbrand.servman.dto.ServicesBase" %>
<%@page import="java.util.ArrayList" %>
<%@page import="java.util.Iterator" %>
<%@page language="java" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/site.css" />
<title>JSP Page</title>
</head>
<body>
<div width="90%" align="center">
<h1>Digital Services Management Console <%=session.getAttribute("actionresp") %></h1>
<div class="stats">Records in system:
Services = <%=session.getAttribute("services") %>&nbsp;
Entries = <%=session.getAttribute("entries") %>&nbsp;
Clients = <%=session.getAttribute("clients") %>
</div>
<div>
<table>
<tr>
<th>Name</th>
<th>Nominal</th>
<th>Description</th>
</tr>
<%
ArrayList<ServicesBase> servicesList = (ArrayList<ServicesBase>)request.getAttribute("services");
Iterator it = servicesList.iterator();
while(it.hasNext()) {
ServicesBase dto = (ServicesBase)it.next();
%>
<tr>
<td><%= dto.getName() %></td>
<td><%= dto.getNominal() %></td>
<td><%= dto.getDescription()%></td>
</tr>
<%
}
%>
</table>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment