debuggers.hg
view tools/control/web/tmpl/pd-gr.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 | 11399488a825 |
children |
line source
1 Grant Access Results
2 SECTION&XenoServers
3 BREADCRUMB&Physical Disk Manager&pd.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&pdmenu.tmpl
11 <td valign="top">
13 <b>Grant Access Results</b>
14 <br>
16 <%
17 HttpServletRequestWrapper hsrw = new HttpServletRequestWrapper(request);
18 Defaults d = sc.getDefaults();
20 String partitions[] = hsrw.getParameterValues("p");
21 String size = null;
23 if (partitions == null || partitions.length == 0)
24 {
25 %>
26 Error: No partitions chosen.<br>
27 <%
28 }
29 else if (hsrw.getParameter("domain") == null ||
30 hsrw.getParameter("domain").trim().equals(""))
31 {
32 %>
33 Error: No domain specified.<br>
34 <%
35 }
36 else
37 {
38 int domain = -1;
40 try
41 {
42 domain = Integer.decode(hsrw.getParameter("domain")).intValue();
43 Mode mode;
44 if (hsrw.getParameter("mode").equals("rw")) {
45 mode = Mode.READ_WRITE;
46 } else {
47 mode = Mode.READ_ONLY;
48 }
50 for (int i = 0; i < partitions.length; i++)
51 {
52 %>
53 output[<%= i %>] =<br>
54 <%= new CommandPhysicalGrant(d, domain, partitions[i], mode, false).executeWeb() %> <br>
55 <%
56 }
57 } catch (NumberFormatException e) {
58 %>
59 Error: invalid domain specification.<br>
60 <%
61 }
62 }
63 %>
66 <%
67 root.doFlushState();
68 %>
71 </td>
72 </tbody>
73 </table>
77 <!-- end content -->