You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2008/08/11 11:46:01 UTC

svn commit: r684693 - in /tuscany/sandbox/thilina/geronimo_ACE/src/main: java/org/apache/tuscany/geronimoace/GeronimoACE.java webapp/pages/Home.jsp webapp/pages/Standalone.jsp

Author: antelder
Date: Mon Aug 11 02:45:59 2008
New Revision: 684693

URL: http://svn.apache.org/viewvc?rev=684693&view=rev
Log:
TUSCANY-2391: apply latest updates from Thilina

Added:
    tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
Modified:
    tuscany/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java
    tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp

Modified: tuscany/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java?rev=684693&r1=684692&r2=684693&view=diff
==============================================================================
--- tuscany/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java (original)
+++ tuscany/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java Mon Aug 11 02:45:59 2008
@@ -31,14 +31,21 @@
         super.init(config);
     }
 
+    public void manageStandaloneNode(String loc){
+        System.out.println("location :" + loc);
+    }
+
     public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException {
         isHome = true;
         String task = request.getParameter("task");                  // getting request parameters task and domain name
-        String domain = request.getParameter("domainName");
+        String location = request.getParameter("contributionLocation");
         if (task != null) {
             if (task.equals("composites")) {       // if the request is for Composites,forwarding to Composites.html
                 viewUrl = "/pages/Composite.jsp";
             }
+            if (task.equals("StandaloneNode")) {       // if the request is for Composites,forwarding to Composites.html
+                viewUrl = "/pages/Standalone.jsp";
+            }
             if (task.equals("workspace")) {       // if the request is for Contributions,forwarding to workspace.html
                 viewUrl = "/pages/Workspace.jsp";
             }
@@ -49,6 +56,9 @@
                 viewUrl = "/pages/Files.jsp";
             }
         }
+        if (location != null){
+            manageStandaloneNode(location);
+        }
 
         response.setPortletMode(PortletMode.VIEW); // by changing portlet mode, doview methos is called again.
 

Modified: tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp
URL: http://svn.apache.org/viewvc/tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp?rev=684693&r1=684692&r2=684693&view=diff
==============================================================================
--- tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp (original)
+++ tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp Mon Aug 11 02:45:59 2008
@@ -1,103 +1,107 @@
-<!--
-~ Licensed to the Apache Software Foundation (ASF) under one
-~ or more contributor license agreements. See the NOTICE file
-~ distributed with this work for additional information
-~ regarding copyright ownership. The ASF licenses this file
-~ to you under the Apache License, Version 2.0 (the
-~ "License"); you may not use this file except in compliance
-~ with the License. You may obtain a copy of the License at
-~
-~ http://www.apache.org/licenses/LICENSE-2.0
-~
-~ Unless required by applicable law or agreed to in writing,
-~ software distributed under the License is distributed on an
-~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-~ KIND, either express or implied. See the License for the
-~ specific language governing permissions and limitations
-~ under the License.
--->
-
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
-         pageEncoding="ISO-8859-1" %>
-<%@ include file="header.jsp" %>
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-    <title>Simple jsp page</title>
-    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-    <style type="text/css">
-        <!--
-        .style1 {
-            font-family: Verdana, Arial, Helvetica, sans-serif
-        }
-
-        .style2 {
-            font-family: Verdana, Arial, Helvetica, sans-serif;
-            font-weight: bold;
-            font-size: large;
-            color: #0000FF;
-        }
-
-        -->
-    </style>
-</head>
-<body>
-<table width="398" border="0" align="center">
-    <tr>
-        <td width="392" align="center" valign="top">
-            <div align="justify" class="style2">Tuscany SCA Domain Manager</div>
-        </td>
-    </tr>
-
-</table>
-<p>&nbsp;</p>
-
-<form id="form1" name="form1" method="post" action="<portlet:actionURL/>">
-    <table width="200" border="0">
-        <tr>
-            <th scope="col"><input type="radio" name="task" value="workspace">Contributions</th>
-            <th/>
-            <th/>
-            <th/>
-            <th scope="col"><input type="radio" name="task" value="composites">Composites</th>
-            <th/>
-            <th/>
-            <th/>
-            <th scope="col"><input type="radio" name="task" value="cloud">Cloud</th>
-            <th/>
-            <th/>
-            <th/>
-            <th scope="col"><input type="radio" name="task" value="files">Files</th>
-            <th/>
-            <th/>
-            <th/>
-        </tr>
-
-        <tr>
-            <td>
-                <div align="center">
-                    <input type="submit" name="manageDomains" value="GO"/>
-                </div>
-            </td>
-        </tr>
-    </table>
-</form>
-
-<p>&nbsp;</p>
-
-<p>&nbsp;</p>
-
-<p>&nbsp;</p>
-
-<p>&nbsp;</p>
-
-<p>&nbsp;</p>
-<table width="287" border="0" align="center">
-    <tr>
-        <td width="129"><span class="style1">About</span></td>
-        <td width="130" class="style1"><a href="http://tuscany.apache.org/" target="_blank">Tuscany Home </a></td>
-    </tr>
-</table>
-<p>&nbsp;</p>
-</body>
+<!--
+~ Licensed to the Apache Software Foundation (ASF) under one
+~ or more contributor license agreements. See the NOTICE file
+~ distributed with this work for additional information
+~ regarding copyright ownership. The ASF licenses this file
+~ to you under the Apache License, Version 2.0 (the
+~ "License"); you may not use this file except in compliance
+~ with the License. You may obtain a copy of the License at
+~
+~ http://www.apache.org/licenses/LICENSE-2.0
+~
+~ Unless required by applicable law or agreed to in writing,
+~ software distributed under the License is distributed on an
+~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+~ KIND, either express or implied. See the License for the
+~ specific language governing permissions and limitations
+~ under the License.
+-->
+
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+         pageEncoding="ISO-8859-1" %>
+<%@ include file="header.jsp" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+    <title>Simple jsp page</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+    <style type="text/css">
+        <!--
+        .style1 {
+            font-family: Verdana, Arial, Helvetica, sans-serif
+        }
+
+        .style2 {
+            font-family: Verdana, Arial, Helvetica, sans-serif;
+            font-weight: bold;
+            font-size: large;
+            color: #0000FF;
+        }
+
+        -->
+    </style>
+</head>
+<body>
+<table width="398" border="0" align="center">
+    <tr>
+        <td width="392" align="center" valign="top">
+            <div align="justify" class="style2">Tuscany SCA Domain Manager</div>
+        </td>
+    </tr>
+
+</table>
+<p>&nbsp;</p>
+
+<form id="form1" name="form1" method="post" action="<portlet:actionURL/>">
+    <table width="200" border="0">
+        <tr>
+            <th scope="col"><input type="radio" name="task" value="workspace">Contributions</th>
+            <th/>
+            <th/>
+            <th/>
+            <th scope="col"><input type="radio" name="task" value="composites">Composites</th>
+            <th/>
+            <th/>
+            <th/>
+            <th scope="col"><input type="radio" name="task" value="cloud">Cloud</th>
+            <th/>
+            <th/>
+            <th/>
+            <th scope="col"><input type="radio" name="task" value="files">Files</th>
+            <th/>
+            <th/>
+            <th/>
+            <th scope="col"><input type="radio" name="task" value="StandaloneNode">Standalone Node</th>
+            <th/>
+            <th/>
+            <th/>
+        </tr>
+
+        <tr>
+            <td>
+                <div align="center">
+                    <input type="submit" name="manageDomains" value="GO"/>
+                </div>
+            </td>
+        </tr>
+    </table>
+</form>
+
+<p>&nbsp;</p>
+
+<p>&nbsp;</p>
+
+<p>&nbsp;</p>
+
+<p>&nbsp;</p>
+
+<p>&nbsp;</p>
+<table width="287" border="0" align="center">
+    <tr>
+        <td width="129"><span class="style1">About</span></td>
+        <td width="130" class="style1"><a href="http://tuscany.apache.org/" target="_blank">Tuscany Home </a></td>
+    </tr>
+</table>
+<p>&nbsp;</p>
+</body>
 </html>
\ No newline at end of file

Added: tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
URL: http://svn.apache.org/viewvc/tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp?rev=684693&view=auto
==============================================================================
--- tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp (added)
+++ tuscany/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp Mon Aug 11 02:45:59 2008
@@ -0,0 +1,17 @@
+<%@ 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>Location:</td>
+                  <td><input type="text" name="contributionLocation" size="100"/></td>
+              </tr>
+          </table>
+          <input type="submit" name="addStandaloneNode" value="start"/>
+   </form>
+
+  </body>
+</html>
\ No newline at end of file