summaryrefslogtreecommitdiffstats
path: root/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
blob: feaf41d156b2edd05cf8ab864417f4709090ff2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="header.jsp" %>
<html>
<head><title>Simple jsp page</title></head>
<body>


<form id="form1" name="form1" method="post" action="<portlet:actionURL/>">

    <table>

        <tr>
            <td>Contribution Location :</td>
            <td><input type="text" name="contributionLocation" size="100"/></td>
        </tr>
        <tr>
            <td>Name of the node :</td>
            <td><input type="text" name="nodeName" size="100"/></td>
        </tr>
        <tr>
            <td>Composite :</td>
            <td><input type="text" name="composite" size="100"/></td>
        </tr>

        <br><br>
    </table>

    <input type="submit" name="addStandaloneNode" value="start"/>

</form>

<form id="form2" name="form2" method="post" action="<portlet:actionURL/>">
    <table width="100%">
        <thead><b> Manage Nodes</b></thead>

        <tbody>
            <tr>
                <th>Node</th>
                <th>Contributions</th>
                <th>Start Node</th>
                <th>stop Node</th>
            </tr>
            <% ManageNodes mNodes = (ManageNodes) application.getAttribute("managenodes");
                List<LocalNode> nodeSet = mNodes.getNodeSet();
                Iterator<LocalNode> iterator = nodeSet.iterator();
                if (iterator.hasNext() == false) { %>


            <tr>
                <td>

                </td>
            </tr>
            <%
                }
                while (iterator.hasNext()) {
                    LocalNode temp = iterator.next();

            %>
            <tr>
                <td>
                    <%=
                    temp.getName()
                    %>
                </td>

                <td>
                    <table>
                        <% Iterator<SCAContribution> contributionList = temp.getContributionList().iterator();
                            while (contributionList.hasNext()) { %>

                        <tr>
                            <%=contributionList.next().getLocation()%>
                        </tr>
                        <br>
                        <%
                            } %></table>
                </td>
                <td><input type="hidden" name="nodeName" value=<%=temp.getName()%>/></td>
                <td><input type="submit" name="StartStandaloneNode" value="start"/></td>
                <td><input type="submit" name="StopStandaloneNode" value="stop"/></td>
            </tr>
            <%
                }
            %>
        </tbody>
    </table>
</form>
</body>
</html>