From ed610805f791ea1d3224301f4d902f855b1df67a Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 11 Aug 2008 09:45:59 +0000 Subject: TUSCANY-2391: apply latest updates from Thilina git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@684693 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/geronimoace/GeronimoACE.java | 12 +- .../geronimo_ACE/src/main/webapp/pages/Home.jsp | 208 +++++++++++---------- .../src/main/webapp/pages/Standalone.jsp | 17 ++ 3 files changed, 134 insertions(+), 103 deletions(-) create mode 100644 sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp (limited to 'sandbox/thilina') 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 @@ - - -<%@ page language="java" contentType="text/html; charset=ISO-8859-1" - pageEncoding="ISO-8859-1" %> -<%@ include file="header.jsp" %> - - - - Simple jsp page - - - - - - - - - -
-
Tuscany SCA Domain Manager
-
-

 

- -
- - - - - - - - - - - -
Contributions - - - Composites - - - Cloud - - - Files - - -
-
- -
-
-
- -

 

- -

 

- -

 

- -

 

- -

 

- - - - - -
AboutTuscany Home
-

 

- + + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" %> +<%@ include file="header.jsp" %> + + + + Simple jsp page + + + + + + + + + +
+
Tuscany SCA Domain Manager
+
+

 

+ +
+ + + + + + + + + + + + +
Contributions + + + Composites + + + Cloud + + + Files + + + Standalone Node + + +
+
+ +
+
+
+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ + + + + +
AboutTuscany Home
+

 

+ \ 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" %> + + Simple jsp page + +
+ + + + + +
Location:
+ +
+ + + \ No newline at end of file -- cgit v1.2.3