/[projects]/miscJava/DataUpload/WebContent/dataviewer.jsp
ViewVC logotype

Contents of /miscJava/DataUpload/WebContent/dataviewer.jsp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 593 - (show annotations) (download)
Sat Feb 20 06:43:13 2010 UTC (14 years, 3 months ago) by torben
File size: 1117 byte(s)
added dumpsite for old java code
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 pageEncoding="ISO-8859-1"%>
3 <%@ page import="java.util.*" %>
4 <%@ page import="java.text.*" %>
5 <%@ page import="com.grundfos.gmatou.dataupload.DataBean" %>
6
7
8 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
9 <html>
10 <head>
11 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
12 <title>Insert title here</title>
13 </head>
14 <body>
15
16 <a href="EditConfig">View / Edit configuration</a><br><br>
17
18 <table border="1">
19 <tr>
20 <th>Id</th>
21 <th>Date</th>
22 <th>Device</th>
23 <th>Size</th>
24 <th>&nbsp;</th>
25 </tr>
26 <%
27 @SuppressWarnings("unchecked")
28 List<DataBean> beans = (List<DataBean>) request.getAttribute("databeans");
29 for (DataBean bean : beans)
30 {
31
32 %>
33 <tr>
34 <td><%= bean.getId() %></td>
35 <td><%= bean.getDate() %></td>
36 <td><%= bean.getDevice() %></td>
37 <td><%= NumberFormat.getInstance().format( bean.getDataSize()) %></td>
38 <td><a href="ViewFile?id=<%= bean.getId() %>">View File</a></td>
39 </tr>
40
41 <%
42 }
43 %>
44 </table>
45
46 </body>
47 </html>

  ViewVC Help
Powered by ViewVC 1.1.20