TUSCANY-2391: apply latest updates from Thilina
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@684693 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e215f715c7
commit
ed610805f7
3 changed files with 134 additions and 103 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -71,6 +71,10 @@
|
|||
<th/>
|
||||
<th/>
|
||||
<th/>
|
||||
<th scope="col"><input type="radio" name="task" value="StandaloneNode">Standalone Node</th>
|
||||
<th/>
|
||||
<th/>
|
||||
<th/>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue