debuggers.hg

view tools/control/web/tmpl/vd-par.tmpl @ 623:e5cb8bd7ebfe

bitkeeper revision 1.325 (3f0d278fx62UemAA1unbHTgIGvOJ4Q)

Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/rac61/xeno.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/sos22/xeno.bk
author sos22@labyrinth.cl.cam.ac.uk
date Thu Jul 10 08:45:03 2003 +0000 (2003-07-10)
parents 858e1659fdcb d746390f5bc4
children 73fab8c399fd
line source
1 Add Partition Results
2 SECTION&XenoServers
3 BREADCRUMB&Virtual Disk Manager&vd.jsp
5 <!-- content -->
6 <img src="pixel.gif" class="block" width="1" height="12">
8 <table cellpadding="0" cellspacing="0" border="0">
9 <tbody>
10 INCLUDE&vdmenu.tmpl
11 <td valign="top">
13 <b>Add Partition Results</b>
14 <br>
16 <%
17 HttpServletRequestWrapper hsrw = new HttpServletRequestWrapper(request);
19 String partitions[] = hsrw.getParameterValues("p");
20 String size = null;
22 if (partitions == null || partitions.length == 0)
23 {
24 %>
25 Error: No partitions chosen.<br>
26 <%
27 }
28 else if (hsrw.getParameter("chunk") == null ||
29 hsrw.getParameter("chunk").trim().equals(""))
30 {
31 %>
32 Error: chunk size not specified.<br>
33 <%
34 }
35 else
36 {
37 size = hsrw.getParameter("chunk").trim() +
38 hsrw.getParameter("chunkunits").trim();
39 for (int i = 0; i < partitions.length; i++)
40 {
41 %>
42 output[<%= i %>] =<br>
43 <%= new CommandPartitionAdd(partitions[i], Library.parseSize(size), false).execute() %> <br>
44 <%
45 }
46 }
47 %>
50 <%
51 root.doFlushState();
52 %>
55 </td>
56 </tbody>
57 </table>
61 <!-- end content -->