debuggers.hg
view tools/control/web/tmpl/vd-par.tmpl @ 636:73fab8c399fd
bitkeeper revision 1.333 (3f0d5c67WCK8celxi8KUCjs_eFc8QA)
Update web interface to work with new VBD interface.
Finish tidying up web build files
Update web interface to work with new VBD interface.
Finish tidying up web build files
author | rac61@labyrinth.cl.cam.ac.uk |
---|---|
date | Thu Jul 10 12:30:31 2003 +0000 (2003-07-10) |
parents | e5cb8bd7ebfe |
children |
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).executeWeb() %> <br>
44 <%
45 }
46 }
47 %>
50 <%
51 root.doFlushState();
52 %>
55 </td>
56 </tbody>
57 </table>
61 <!-- end content -->