summaryrefslogtreecommitdiffstats
path: root/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java')
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java12
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.