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:
antelder 2008-08-11 09:45:59 +00:00
commit ed610805f7
3 changed files with 134 additions and 103 deletions

View file

@ -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.

View file

@ -1,103 +1,107 @@
<!--
~ 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="workspace">Contributions</th>
<th/>
<th/>
<th/>
<th scope="col"><input type="radio" name="task" value="composites">Composites</th>
<th/>
<th/>
<th/>
<th scope="col"><input type="radio" name="task" value="cloud">Cloud</th>
<th/>
<th/>
<th/>
<th scope="col"><input type="radio" name="task" value="files">Files</th>
<th/>
<th/>
<th/>
</tr>
<tr>
<td>
<div align="center">
<input type="submit" name="manageDomains" value="GO"/>
</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>
<!--
~ 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="workspace">Contributions</th>
<th/>
<th/>
<th/>
<th scope="col"><input type="radio" name="task" value="composites">Composites</th>
<th/>
<th/>
<th/>
<th scope="col"><input type="radio" name="task" value="cloud">Cloud</th>
<th/>
<th/>
<th/>
<th scope="col"><input type="radio" name="task" value="files">Files</th>
<th/>
<th/>
<th/>
<th scope="col"><input type="radio" name="task" value="StandaloneNode">Standalone Node</th>
<th/>
<th/>
<th/>
</tr>
<tr>
<td>
<div align="center">
<input type="submit" name="manageDomains" value="GO"/>
</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>

View file

@ -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>