summaryrefslogtreecommitdiffstats
path: root/sandbox/thilina
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-07-07 09:05:36 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-07-07 09:05:36 +0000
commitce68bf67996b12a5359e8bb539e9b1537e74ed4c (patch)
tree895fa4c47aa156cf1c0401e6234a6b1ffee78dae /sandbox/thilina
parent71b4950c10804a877f5008f4d2e9d491360b80aa (diff)
TUSCANY-2391: Apply latest patch from Thilina Buddhika for GSoC project Tuscany SCA support in the Geronimo Admin Console
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@674426 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/thilina')
-rw-r--r--sandbox/thilina/geronimo_ACE/README.txt38
-rw-r--r--sandbox/thilina/geronimo_ACE/pom.xml108
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java57
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml26
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml77
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml38
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp87
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/ListDomains.jsp62
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/ManageDomain.jsp75
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp21
10 files changed, 465 insertions, 124 deletions
diff --git a/sandbox/thilina/geronimo_ACE/README.txt b/sandbox/thilina/geronimo_ACE/README.txt
index 38cdfe0a46..d6cd1b4339 100644
--- a/sandbox/thilina/geronimo_ACE/README.txt
+++ b/sandbox/thilina/geronimo_ACE/README.txt
@@ -1,9 +1,29 @@
-How to build the Admin Console Extension
-========================================
-
-1.Extract the archive.
-2.Go to the directory created after extracting the archive.
-3.Type the following command "mvn install"
-4.It will create a directory named "target" which contains the "org.apache.tuscany.geronimoace.geronimo-ace-1.0-SNAPSHOT.war".
-5.Deploy this in geronimo.
-
+<!--
+ ~ 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.
+ -->
+
+
+How to build the Admin Console Extension
+========================================
+
+1.Extract the archive.
+2.Go to the directory created after extracting the archive.
+3.Type the following command "mvn install"
+4.It will create a directory named "target" which contains the "org.apache.tuscany.geronimoace.geronimo-ace-1.0-SNAPSHOT.war".
+5.Deploy this in geronimo.
+
diff --git a/sandbox/thilina/geronimo_ACE/pom.xml b/sandbox/thilina/geronimo_ACE/pom.xml
index 9bbeb2ed9d..f5f2a8e7b6 100644
--- a/sandbox/thilina/geronimo_ACE/pom.xml
+++ b/sandbox/thilina/geronimo_ACE/pom.xml
@@ -1,44 +1,64 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.tuscany.geronimoace</groupId>
- <artifactId>org.apache.tuscany.geronimoace.geronimo-ace</artifactId>
- <packaging>war</packaging>
- <version>1.0-SNAPSHOT</version>
- <name>geronimo-ace</name>
- <url>http://maven.apache.org</url>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>portlet-api</groupId>
- <artifactId>portlet-api</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>javax.portlet</groupId>
- <artifactId>portlet-api</artifactId>
- <version>1.0</version>
- </dependency>
-
- </dependencies>
- <build>
- <defaultGoal>install</defaultGoal>
- <directory>${basedir}/target</directory>
- <finalName>${artifactId}-${version}</finalName>
- <resources>
- <resource>
- <targetPath>WEB-INF</targetPath>
- <filtering>false</filtering>
- <directory>${basedir}/src/webapp/WEB-INF</directory>
- <includes>
- <include>web.xml</include>
- </includes>
- </resource>
- </resources>
- </build>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.tuscany.geronimoace</groupId>
+ <artifactId>org.apache.tuscany.geronimoace.geronimo-ace</artifactId>
+ <packaging>war</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>geronimo-ace</name>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version> <!-- to keep compatible with older servlet containers -->
+ <scope>provided</scope>
+ </dependency>
+
+ </dependencies>
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <directory>${basedir}/target</directory>
+ <finalName>${artifactId}-${version}</finalName>
+ <resources>
+ <resource>
+ <targetPath>WEB-INF</targetPath>
+ <filtering>false</filtering>
+ <directory>${basedir}/src/webapp/WEB-INF</directory>
+ <includes>
+ <include>web.xml</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+</project>
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 eb52936bb6..f55776fc0a 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
@@ -17,24 +17,63 @@
* under the License.
*/
+/*
+ * 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.
+ */
+
package org.apache.tuscany.geronimoace;
import javax.portlet.*;
import java.io.IOException;
-import java.io.PrintWriter;
public class GeronimoACE extends GenericPortlet {
- public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
+ private String viewUrl = "/pages/Home.jsp";
+
+
+ public void init(PortletConfig config) throws PortletException {
+ super.init(config);
+ // viewUrl = config.getInitParameter("view_url");
+ }
+
+ public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException {
+ String task = request.getParameter("task");
+ String domain = request.getParameter("domainName");
+ if (task != null) {
+ if (task.equals("list")) {
+ viewUrl = "/pages/ListDomains.jsp";
+ }
+ }
+ if (domain != null) {
+ request.setAttribute("domain", domain);
+ viewUrl = "/pages/ManageDomain.jsp";
+ }
+ response.setPortletMode(PortletMode.VIEW);
+ }
+
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
// Set the response to read HTML
response.setContentType("text/html;charset=UTF-8");
- // Required call for use of getWriter() and getPortletOutputStream()
- PrintWriter out = response.getWriter();
- out.println("<html><body>");
- out.println("Hello World");
- out.println("</body></html>");
- out.flush();
- out.close();
+ PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(viewUrl);
+ dispatcher.include(request, response);
+
+
}
+
}
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml
index 7b0c484c49..cfd05c1866 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml
@@ -18,6 +18,26 @@
-->
+<!--
+ ~ 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.
+ -->
+
+
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.2">
<environment>
<moduleId>
@@ -39,12 +59,12 @@
<context-root>/GeronimoACE</context-root>
<!-- Start off a ACEGBean, this is the lifecycle for the portlet -->
- <gbean name="PlutoTest" class="org.apache.geronimo.pluto.AdminConsoleExtensionGBean">
+ <gbean name="PlutoTest" class="org.apache.geronimo.pluto.AdminConsoleExtensionGBean">
<attribute name="pageTitle">Tuscany ACE</attribute>
<attribute name="portletContext">/GeronimoACE</attribute>
<attribute name="portletList">[GeronimoACE]</attribute>
<reference name="PortalContainerServices">
- <name>PlutoPortalServices</name>
+ <name>PlutoPortalServices</name>
</reference>
- </gbean>
+ </gbean>
</web-app>
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml
index f8f722e8cd..7989f30ed3 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml
@@ -1,43 +1,40 @@
-<!--
- ~ 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.
- -->
-
-
<?xml version="1.0" encoding="UTF-8"?>
-
+<!--
+ * 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.
+-->
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
- <portlet>
- <description lang="EN">GeronimoACE</description>
- <portlet-name>GeronimoACE</portlet-name>
- <display-name lang="EN">Geronimo Admin Console for Tuscany</display-name>
- <portlet-class>org.apache.tuscany.geronimoace.GeronimoACE</portlet-class>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>view</portlet-mode>
- </supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Tuscany Admin Console EXtension</title>
- <short-title>Tuscany ACE</short-title>
- </portlet-info>
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+ <portlet>
+ <description lang="EN">GeronimoACE</description>
+ <portlet-name>GeronimoACE</portlet-name>
+ <display-name lang="EN">Geronimo Admin Console for Tuscany</display-name>
+ <portlet-class>org.apache.tuscany.geronimoace.GeronimoACE</portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>view</portlet-mode>
+ <portlet-mode>edit</portlet-mode>
+ <portlet-mode>help</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Tuscany Admin Console EXtension</title>
+ <short-title>Tuscany ACE</short-title>
+ </portlet-info>
</portlet>
-</portlet-app>
-
-
+</portlet-app> \ No newline at end of file
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml
index c40f92057e..fea2878551 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml
@@ -1,25 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ 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.
- -->
+ * 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.
+-->
-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
- "http://java.sun.com/dtd/web-app_2_3.dtd">
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- This is pretty standard servlet code -->
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp
new file mode 100644
index 0000000000..27cb1665b6
--- /dev/null
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Home.jsp
@@ -0,0 +1,87 @@
+<!--
+~ 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="list">List Domains</th>
+ </tr>
+
+ <tr>
+ <td>
+ <div align="center">
+ <input type="submit" name="manageDomains" value="List"/>
+ </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/ListDomains.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/ListDomains.jsp
new file mode 100644
index 0000000000..980fc3d3ce
--- /dev/null
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/ListDomains.jsp
@@ -0,0 +1,62 @@
+<!--
+~ 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 contentType="text/html;charset=UTF-8" language="java" %>
+<%@ include file="header.jsp" %>
+<html>
+<head>
+ <title>Untitled Document</title>
+ <style type="text/css">
+ <!--
+ .style1 {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 14px;
+ }
+
+ .style3 {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 24px;
+ font-weight: bold;
+ color: #0033FF;
+ }
+
+ -->
+ </style>
+</head>
+<body><p class="style3">List of Domains</p>
+
+<form action="<portlet:actionURL/>" method="post" name="form1" class="style1" id="form1">
+ <p>
+ <input name="domainName" type="radio" value="Test Domain1"/>
+ Test Domain1</p>
+
+ <p>
+ <input name="domainName" type="radio" value="Test Domain2"/>
+ Test Domain2</p>
+
+ <p>
+ <input name="domainName" type="radio" value="Test Domain3"/>
+ Test Domain3</p>
+
+ <p>
+ <input type="submit" name="Submit" value="Manage"/>
+ </p>
+</form>
+<p class="style3">&nbsp;</p>
+</body>
+</html> \ No newline at end of file
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/ManageDomain.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/ManageDomain.jsp
new file mode 100644
index 0000000000..9fe6f72175
--- /dev/null
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/ManageDomain.jsp
@@ -0,0 +1,75 @@
+<!--
+~ 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 contentType="text/html;charset=UTF-8" language="java" %>
+<%@ include file="header.jsp" %>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
+ <title>Untitled Document</title>
+ <style type="text/css">
+ <!--
+ .style1 {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-weight: bold;
+ color: #0000FF;
+ }
+
+ .style2 {
+ font-family: Verdana, Arial, Helvetica, sans-serif
+ }
+
+ .style4 {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 14px;
+ }
+
+ -->
+ </style>
+</head>
+<body><p class="style1">Managing the domain</p>
+<table width="460" border="0">
+ <tr>
+ <th width="244" scope="col"><span class="style2">Contributions</span></th>
+ <th width="94" scope="col"><span class="style2">start</span></th>
+ <th width="100" scope="col"><span class="style2">stop</span></th>
+ </tr>
+ <tr>
+ <td>
+ <div align="center"><span class="style4">test contribution1 </span></div>
+ </td>
+ <td>
+ <div align="center"><span class="style4"> start </span></div>
+ </td>
+ <td>
+ <div align="center"><span class="style4">stop</span></div>
+ </td>
+ </tr>
+ <tr>
+ <td><span class="style2"></span></td>
+ <td><span class="style2"></span></td>
+ <td><span class="style2"></span></td>
+ </tr>
+ <tr>
+ <td><span class="style2"></span></td>
+ <td><span class="style2"></span></td>
+ <td><span class="style2"></span></td>
+ </tr>
+</table>
+<p class="style1">&nbsp;</p></body>
+</html> \ No newline at end of file
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp
new file mode 100644
index 0000000000..99687d12d2
--- /dev/null
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp
@@ -0,0 +1,21 @@
+<!--
+~ 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.
+-->
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<portlet:defineObjects/>