diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-11 09:45:59 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-11 09:45:59 +0000 |
commit | ed610805f791ea1d3224301f4d902f855b1df67a (patch) | |
tree | ee8b9098759ee7d3b39997f6958a9de1efdebcf8 /sandbox/thilina/geronimo_ACE/src/main/java | |
parent | e215f715c7345f54380fff2c82c25326686f290d (diff) |
TUSCANY-2391: apply latest updates from Thilina
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@684693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/thilina/geronimo_ACE/src/main/java')
-rw-r--r-- | sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java | 12 |
1 files changed, 11 insertions, 1 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.
|