summaryrefslogtreecommitdiffstats
path: root/sandbox/thilina/geronimo_ACE
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/thilina/geronimo_ACE')
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java12
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp208
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp17
3 files changed, 134 insertions, 103 deletions
diff --git a/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java b/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java
index 8905bf7152..219420c000 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java
+++ b/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java
@@ -31,14 +31,21 @@ public class GeronimoACE extends GenericPortlet {
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 @@ public class GeronimoACE extends GenericPortlet {
viewUrl = "/pages/Files.jsp";
}
}
+ if (location != null){
+ manageStandaloneNode(location);
+ }
response.setPortletMode(PortletMode.VIEW); // by changing portlet mode, doview methos is called again.
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp
index 52824e3cb9..4f8d3d75b1 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp
@@ -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
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
new file mode 100644
index 0000000000..6e8ec83af8
--- /dev/null
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
@@ -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