Created
August 23, 2011 13:43
-
-
Save theresajayne/1165152 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@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") %> | |
Entries = <%=session.getAttribute("entries") %> | |
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