diff options
author | cbrealey | 2005-04-19 17:35:02 +0000 |
---|---|---|
committer | cbrealey | 2005-04-19 17:35:02 +0000 |
commit | 971d821534b5c95766bd2839d77be1e4b518d73b (patch) | |
tree | 302d5be26445644d36e59abebd479e2e17c19ab3 /bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions | |
parent | 8d8e8d6abe52012d9c8a6174777f608a0890b48a (diff) | |
download | webtools.webservices-971d821534b5c95766bd2839d77be1e4b518d73b.tar.gz webtools.webservices-971d821534b5c95766bd2839d77be1e4b518d73b.tar.xz webtools.webservices-971d821534b5c95766bd2839d77be1e4b518d73b.zip |
[88679] [91880] Refactor Web Services Explorer from component jst.ws to wst.ws / Delete obsolete org.eclipse.wst.ws plugins
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions')
61 files changed, 2724 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddItemsToFavoritesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddItemsToFavoritesActionJSP.jsp new file mode 100644 index 000000000..1d820c7bf --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddItemsToFavoritesActionJSP.jsp @@ -0,0 +1,40 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Prepare the action. + AddItemsToFavoritesAction action = new AddItemsToFavoritesAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +</head> +<body> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddPublisherAssertionsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddPublisherAssertionsActionJSP.jsp new file mode 100644 index 000000000..9cca0673b --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddPublisherAssertionsActionJSP.jsp @@ -0,0 +1,46 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + // Prepare the action. + AddPublisherAssertionsAction action = new AddPublisherAssertionsAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (inputsValid) + { + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + } +%> + + <script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; + </script> + +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddToFavoritesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddToFavoritesActionJSP.jsp new file mode 100644 index 000000000..bbd65302f --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddToFavoritesActionJSP.jsp @@ -0,0 +1,40 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.AddToFavoritesAction"%> + + +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Prepare the action. + AddToFavoritesAction action = new AddToFavoritesAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +</head> +<body> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceAdvancedActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceAdvancedActionJSP.jsp new file mode 100644 index 000000000..dfbe50380 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceAdvancedActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action + BusPublishServiceAdvancedAction action = new BusPublishServiceAdvancedAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!action.isSubQueryInitiated()) + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceSimpleActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceSimpleActionJSP.jsp new file mode 100644 index 000000000..f0f3d805d --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceSimpleActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + BusPublishServiceSimpleAction action = new BusPublishServiceSimpleAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusinessGetServicesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusinessGetServicesActionJSP.jsp new file mode 100644 index 000000000..3ee5d2463 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusinessGetServicesActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<% + // Prepare the action. + BusinessGetServicesAction action = new BusinessGetServicesAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + boolean businessExists = action.validateBusiness(); + + if (!businessExists) + { + int nodeId = Integer.parseInt((String)(action.getPropertyTable().get(ActionInputs.NODEID))); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_BUSINESS_NODE"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearNavigatorNodeAction.getActionLink(nodeId)))%>"; +</script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CheckFavoriteExistsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CheckFavoriteExistsActionJSP.jsp new file mode 100644 index 000000000..e9f6ce3b8 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CheckFavoriteExistsActionJSP.jsp @@ -0,0 +1,65 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.AddToFavoritesAction, + org.eclipse.wst.ws.internal.explorer.platform.util.*, + java.util.*"%> + + +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> + +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +</head> +<body> +<form action="<%=response.encodeURL(controller.getPathWithContext("uddi/actions/AddToFavoritesActionJSP.jsp"))%>" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>"> +<% +Enumeration paramNames = request.getParameterNames(); +while (paramNames.hasMoreElements()) { + String paramName = (String)paramNames.nextElement(); + String[] paramValues = request.getParameterValues(paramName); + for (int i = 0; i < paramValues.length; i++) { +%> + <input type="hidden" name="<%=paramName%>" value="<%=paramValues[i]%>"> +<% + } +} +%> +</form> +</body> +</html> + +<% +// Prepare the action. +AddToFavoritesAction action = new AddToFavoritesAction(controller); +// Load the parameters for the action from the servlet request. +action.populatePropertyTable(request); +if (action.favoriteExists()) { +%> + <script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(controller.getUDDIPerspective().getMessage("MSG_QUESTION_OVERWRITE_FAVORITES"))%>")) + document.forms[0].submit(); + </script> +<% +} +else { +%> + <script language="javascript"> + document.forms[0].submit(); + </script> +<% +} +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodeActionJSP.jsp new file mode 100644 index 000000000..c9dec4361 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodeActionJSP.jsp @@ -0,0 +1,35 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Prepare the action. + NodeManager navigatorManager = controller.getUDDIPerspective().getNavigatorManager(); + Node selectedNode = navigatorManager.getSelectedNode(); + ClearNavigatorNodeAction action; + if (selectedNode instanceof FolderNode) + action = new ClearNavigatorFolderNodeAction(controller); + else + action = new ClearNavigatorNodeAction(controller); + + // The action may be executed programmed link. + action.populatePropertyTable(request); + + boolean inputsValid = true; + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); +%> +<%@ include file="/actions/ClearNodeAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodesActionJSP.jsp new file mode 100644 index 000000000..0a6d173bb --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodesActionJSP.jsp @@ -0,0 +1,35 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + // Prepare the action. + ClearNavigatorNodesAction action = new ClearNavigatorNodesAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CompletePublisherAssertionsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CompletePublisherAssertionsActionJSP.jsp new file mode 100644 index 000000000..157625584 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CompletePublisherAssertionsActionJSP.jsp @@ -0,0 +1,46 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + // Prepare the action. + CompletePublisherAssertionsAction action = new CompletePublisherAssertionsAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (inputsValid) + { + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + } +%> + + <script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; + </script> + +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/LaunchSubQueryAction.inc b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/LaunchSubQueryAction.inc new file mode 100644 index 000000000..c3bfee0d4 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/LaunchSubQueryAction.inc @@ -0,0 +1,56 @@ +<% +/******************************************************************************* + * Copyright (c) 2000, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<% + String subQueryKey = action.getSubQueryKey(); + StringBuffer newSubQueryKey = new StringBuffer(); + if (subQueryKey != null && subQueryKey.length() > 0) + newSubQueryKey.append(action.getSubQueryKey()).append(':'); + newSubQueryKey.append(action.getNewSubQuery()); + FormTool formTool = (FormTool)action.getSelectedFormTool(); + FormToolPropertiesInterface parentFormToolPI = ((MultipleFormToolPropertiesInterface)formTool).getFormToolProperties(subQueryKey); + FormToolPropertiesInterface subQueryFormToolPI = ((MultipleFormToolPropertiesInterface)formTool).getFormToolProperties(newSubQueryKey.toString()); + String newSubQueryItemString = action.getNewSubQueryItem(); + subQueryFormToolPI.setProperty(UDDIActionInputs.QUERY_ITEM,newSubQueryItemString); + subQueryFormToolPI.setProperty(UDDIActionInputs.SUBQUERY_GET,new Boolean(action.isSubQueryGet())); + + // Always initialize the query name so the subquery makes sense. + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); + String parentQueryName = (String)parentFormToolPI.getProperty(UDDIActionInputs.QUERY_NAME); + if (parentQueryName == null) + parentQueryName = uddiPerspective.getMessage("DEFAULT_QUERY_NAME"); + int newSubQueryItem = Integer.parseInt(newSubQueryItemString); + String newSubQueryItemTypeString = null; + switch (newSubQueryItem) + { + case UDDIActionInputs.QUERY_ITEM_BUSINESSES: + newSubQueryItemTypeString = uddiPerspective.getMessage("FORM_OPTION_BUSINESSES"); + break; + case UDDIActionInputs.QUERY_ITEM_SERVICES: + newSubQueryItemTypeString = uddiPerspective.getMessage("FORM_OPTION_SERVICES"); + break; + case UDDIActionInputs.QUERY_ITEM_SERVICE_INTERFACES: + default: + newSubQueryItemTypeString = uddiPerspective.getMessage("FORM_OPTION_SERVICE_INTERFACES"); + } + String[] messageParameters = {parentQueryName,newSubQueryItemTypeString}; + subQueryFormToolPI.setProperty(UDDIActionInputs.QUERY_NAME,uddiPerspective.getMessage("DEFAULT_SUBQUERY_NAME",messageParameters)); + + Node node = action.getSelectedNavigatorNode(); + int nodeId = node.getNodeId(); + int toolId = node.getToolManager().getSelectedToolId(); + int viewId = node.getViewId(); + int viewToolId = node.getViewToolId(); +%> +<script language="javascript"> + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(SelectFindToolAction.getActionLink(nodeId,toolId,viewId,viewToolId,newSubQueryKey.toString(),false)))%>"; +</script> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ManageReferencedServicesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ManageReferencedServicesActionJSP.jsp new file mode 100644 index 000000000..50f7b4127 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ManageReferencedServicesActionJSP.jsp @@ -0,0 +1,67 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + java.util.*" %> + + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + ManageReferencedServicesAction action = new ManageReferencedServicesAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!inputsValid) + { +%> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +<% + } + else + { + if (!action.isSubQueryInitiated()) + { + action.execute(); +%> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/NewNodeAction.inc b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/NewNodeAction.inc new file mode 100644 index 000000000..2f9e480d1 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/NewNodeAction.inc @@ -0,0 +1,55 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<% + if (!inputsValid) + { +%> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +<% + } + else + { + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + + if (actionResult) + { + // Ensure that the selected node is visible. + controller.getUDDIPerspective().getNavigatorManager().makeSelectedNodeVisible(); +%> +<script language="javascript"> + if (isMicrosoftInternetExplorer()) + { + navigatorContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/navigator_content.jsp"))%>"; + propertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_container.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; + } + else + perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/uddi_perspective_content.jsp"))%>"; +</script> +<% + } + else + { +%> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +<% + } + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/OpenRegistryActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/OpenRegistryActionJSP.jsp new file mode 100644 index 000000000..f6964fafd --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/OpenRegistryActionJSP.jsp @@ -0,0 +1,36 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + // Prepare the action. + + OpenRegistryAction action = new OpenRegistryAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodeActionJSP.jsp new file mode 100644 index 000000000..23832a40f --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodeActionJSP.jsp @@ -0,0 +1,90 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*, + java.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<jsp:include page="/scripts/formutils.jsp" flush="true"/> +<% + // Prepare the action. + RefreshUDDINodeAction action = new RefreshUDDINodeAction(controller); + + // The action may be executed via program link. + action.populatePropertyTable(request); + boolean isNodeDataValid = action.verifyNodeData(); + + boolean inputsValid = true; + String onLoadAction; + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> + function processClearNodesForm() + { + var clearNodesForm = document.forms[0]; + var submitClearNodesForm = false; +<% + Vector staleNodes = action.getStaleNodes(); + for (int i=0;i<staleNodes.size();i++) + { + Node staleNode = (Node)staleNodes.elementAt(i); +%> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_NODE",staleNode.getNodeName()))%>")) + { + clearNodesForm.appendChild(createHiddenElement("<%=ActionInputs.NODEID%>",<%=staleNode.getNodeId()%>)); + submitClearNodesForm = true; + } +<% + } +%> + if (submitClearNodesForm) + clearNodesForm.submit(); + } +</script> +</head> +<body> +<form action="<%=response.encodeURL(controller.getPathWithContext("uddi/actions/ClearNavigatorNodesActionJSP.jsp"))%>" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" method="post" enctype="multipart/form-data"> +</form> +<% + if (!isNodeDataValid) + { + int nodeId = Integer.parseInt((String)(action.getPropertyTable().get(ActionInputs.NODEID))); + String nodeName = uddiPerspective.getNavigatorManager().getNode(nodeId).getNodeName(); +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_NODE",nodeName))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearNavigatorNodeAction.getActionLink(nodeId)))%>"; +</script> +<% + } + else + { +%> +<script language="javascript"> + processClearNodesForm(); +</script> +<%@ include file = "/uddi/actions/NewNodeAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodesActionJSP.jsp new file mode 100644 index 000000000..4cc9f7e7d --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodesActionJSP.jsp @@ -0,0 +1,65 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*, + java.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<jsp:include page="/scripts/formutils.jsp" flush="true"/> +<% + // Prepare the action. + RefreshUDDINodesAction action = new RefreshUDDINodesAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + // Run the action + boolean actionResult = action.execute(); +%> +<script language="javascript"> + function processClearNodesForm() + { + var clearNodesForm = document.forms[0]; +<% + Vector staleNodes = action.getStaleNodes(); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); + for (int i=0;i<staleNodes.size();i++) + { + Node staleNode = (Node)staleNodes.elementAt(i); +%> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_NODE",staleNode.getNodeName()))%>")) + clearNodesForm.appendChild(createHiddenElement("<%=ActionInputs.NODEID%>",<%=staleNode.getNodeId()%>)); +<% + } +%> + clearNodesForm.submit(); + } +</script> +</head> +<body> +<form action="<%=response.encodeURL(controller.getPathWithContext("uddi/actions/ClearNavigatorNodesActionJSP.jsp"))%>" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" method="post" enctype="multipart/form-data"> +</form> +<script language="javascript"> + processClearNodesForm(); +</script> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessUUIDActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessUUIDActionJSP.jsp new file mode 100644 index 000000000..777a3324b --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessUUIDActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindBusinessUUIDAction action = new RegFindBusinessUUIDAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesAdvancedActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesAdvancedActionJSP.jsp new file mode 100644 index 000000000..1ea61ee6d --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesAdvancedActionJSP.jsp @@ -0,0 +1,51 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + java.util.*" %> + + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindBusinessesAdvancedAction action = new RegFindBusinessesAdvancedAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!action.isSubQueryInitiated()) + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesSimpleActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesSimpleActionJSP.jsp new file mode 100644 index 000000000..f0465c122 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesSimpleActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindBusinessesSimpleAction action = new RegFindBusinessesSimpleAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfaceUUIDActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfaceUUIDActionJSP.jsp new file mode 100644 index 000000000..9c4f33951 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfaceUUIDActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindServiceInterfaceUUIDAction action = new RegFindServiceInterfaceUUIDAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesAdvancedActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesAdvancedActionJSP.jsp new file mode 100644 index 000000000..6dce4144e --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesAdvancedActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindServiceInterfacesAdvancedAction action = new RegFindServiceInterfacesAdvancedAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!action.isSubQueryInitiated()) + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesSimpleActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesSimpleActionJSP.jsp new file mode 100644 index 000000000..657817bca --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesSimpleActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindServiceInterfacesSimpleAction action = new RegFindServiceInterfacesSimpleAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceUUIDActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceUUIDActionJSP.jsp new file mode 100644 index 000000000..6ceefaf93 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceUUIDActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindServiceUUIDAction action = new RegFindServiceUUIDAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesAdvancedActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesAdvancedActionJSP.jsp new file mode 100644 index 000000000..83931ca3b --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesAdvancedActionJSP.jsp @@ -0,0 +1,51 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + java.util.*" %> + + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindServicesAdvancedAction action = new RegFindServicesAdvancedAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!action.isSubQueryInitiated()) + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesSimpleActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesSimpleActionJSP.jsp new file mode 100644 index 000000000..2074caf45 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesSimpleActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegFindServicesSimpleAction action = new RegFindServicesSimpleAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessAdvancedActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessAdvancedActionJSP.jsp new file mode 100644 index 000000000..b956daa25 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessAdvancedActionJSP.jsp @@ -0,0 +1,38 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + java.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegPublishBusinessAdvancedAction action = new RegPublishBusinessAdvancedAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessSimpleActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessSimpleActionJSP.jsp new file mode 100644 index 000000000..af0734eff --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessSimpleActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegPublishBusinessSimpleAction action = new RegPublishBusinessSimpleAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceAdvancedActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceAdvancedActionJSP.jsp new file mode 100644 index 000000000..838050547 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceAdvancedActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegPublishServiceAdvancedAction action = new RegPublishServiceAdvancedAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!action.isSubQueryInitiated()) + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceAdvancedActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceAdvancedActionJSP.jsp new file mode 100644 index 000000000..b1569cccd --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceAdvancedActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegPublishServiceInterfaceAdvancedAction action = new RegPublishServiceInterfaceAdvancedAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceSimpleActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceSimpleActionJSP.jsp new file mode 100644 index 000000000..c251da5ab --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceSimpleActionJSP.jsp @@ -0,0 +1,37 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegPublishServiceInterfaceSimpleAction action = new RegPublishServiceInterfaceSimpleAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceSimpleActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceSimpleActionJSP.jsp new file mode 100644 index 000000000..a2412bcf3 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceSimpleActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RegPublishServiceSimpleAction action = new RegPublishServiceSimpleAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!action.isSubQueryInitiated()) + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemovePublisherAssertionsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemovePublisherAssertionsActionJSP.jsp new file mode 100644 index 000000000..b6aa6272b --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemovePublisherAssertionsActionJSP.jsp @@ -0,0 +1,46 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + // Prepare the action. + RemovePublisherAssertionsAction action = new RemovePublisherAssertionsAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (inputsValid) + { + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + } +%> + + <script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; + </script> + +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemoveSubQueryItemActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemoveSubQueryItemActionJSP.jsp new file mode 100644 index 000000000..50ae31f0f --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemoveSubQueryItemActionJSP.jsp @@ -0,0 +1,42 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + RemoveSubQueryItemAction action = new RemoveSubQueryItemAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); +%> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ResizeUDDIFramesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ResizeUDDIFramesActionJSP.jsp new file mode 100644 index 000000000..c1e0f4650 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ResizeUDDIFramesActionJSP.jsp @@ -0,0 +1,54 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Create the action. + ResizeUDDIFramesAction action = new ResizeUDDIFramesAction(controller); + + // Populate the action with the request properties. + boolean result = action.populatePropertyTable(request); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddiframesets.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + if (result) + { + action.execute(false); + + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> + if (isMicrosoftInternetExplorer()) + { + var perspectiveContentFrameset = getPerspectiveContentFrameset(); + var actionsContainerFrameset = getActionsContainerFrameset(); + perspectiveContentFrameset.setAttribute("cols","<%=uddiPerspective.getPerspectiveContentFramesetCols()%>"); + actionsContainerFrameset.setAttribute("rows","<%=uddiPerspective.getActionsContainerFramesetRows()%>"); + } + else + perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/uddi_perspective_content.jsp"))%>"; +</script> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectCategoryNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectCategoryNodeActionJSP.jsp new file mode 100644 index 000000000..78aa970f8 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectCategoryNodeActionJSP.jsp @@ -0,0 +1,77 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.datamodel.*, + org.uddi4j.util.*" %> + +<% + String sessionId = request.getParameter(ActionInputs.SESSIONID); + HttpSession currentSession = (HttpSession)application.getAttribute(sessionId); + Controller controller = (Controller)currentSession.getAttribute("controller"); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/cbpanes.jsp" flush="true"/> +<% + // Prepare the action. + SelectCategoryNodeAction action = new SelectCategoryNodeAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(false); + + CategoryNode selectedNode = (CategoryNode)action.getSelectedNode(); + NodeManager nodeManager = selectedNode.getNodeManager(); + Node previousSelectedNode = nodeManager.getPreviousSelectedNode(); + int selectedNodeId = selectedNode.getNodeId(); +%> +<script language="javascript"> +<% + String treeContentVar = action.getTreeContentVar(); + if (previousSelectedNode != null) + { + if (treeContentVar != null) + { +%> + <%=treeContentVar%>.alterImage('<%=previousSelectedNode.getAnchorName()%>','<%=response.encodeURL(controller.getPathWithContext(previousSelectedNode.getClosedImagePath()))%>'); +<% + } + } + String selectedNodeAnchorName = selectedNode.getAnchorName(); + if (treeContentVar != null) + { +%> + <%=treeContentVar%>.selectNode('<%=selectedNodeAnchorName%>','<%=response.encodeURL(controller.getPathWithContext(selectedNode.getOpenImagePath()))%>'); + <%=treeContentVar%>.location.hash = '#<%=selectedNodeAnchorName%>'; +<% + } + + CategoryElement categoryElement = (CategoryElement)selectedNode.getTreeElement(); + KeyedReference kr = categoryElement.getCategory(); +%> + categoryBrowserWindow.opener.targetCategoryKeyNameElement.value = "<%=kr.getKeyName()%>"; + categoryBrowserWindow.opener.targetCategoryKeyValueElement.value = "<%=kr.getKeyValue()%>"; + categoryBrowserWindow.opener.closeCategoryBrowser(); +</script> +</head> +<body> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectFindToolActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectFindToolActionJSP.jsp new file mode 100644 index 000000000..063cf1f65 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectFindToolActionJSP.jsp @@ -0,0 +1,33 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Prepare the action. + SelectFindToolAction action = new SelectFindToolAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + + // Determine if the action was added to the history list. + boolean isAddedToHistory = action.isAddedToHistory(); +%> +<%@ include file="/actions/SelectNodeToolAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectNavigatorNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectNavigatorNodeActionJSP.jsp new file mode 100644 index 000000000..8cb7d0ddb --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectNavigatorNodeActionJSP.jsp @@ -0,0 +1,33 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Prepare the action. + SelectNavigatorNodeAction action = new SelectNavigatorNodeAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + + // Determine if the action was added to the history list. + boolean isAddedToHistory = action.isAddedToHistory(); +%> +<%@ include file="/actions/SelectNodeAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectPropertiesToolActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectPropertiesToolActionJSP.jsp new file mode 100644 index 000000000..474a40fa9 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectPropertiesToolActionJSP.jsp @@ -0,0 +1,33 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% +// Prepare the action. +SelectPropertiesToolAction action = new SelectPropertiesToolAction(controller); + +// Load the parameters for the action from the servlet request. +action.populatePropertyTable(request); + +// Run the action and obtain the return code (fail/success). +boolean actionResult = action.execute(); + +// Determine if the action was added to the history list. +boolean isAddedToHistory = action.isAddedToHistory(); +%> +<%@ include file="/actions/SelectNodeToolAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectSubQueryItemActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectSubQueryItemActionJSP.jsp new file mode 100644 index 000000000..259611023 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectSubQueryItemActionJSP.jsp @@ -0,0 +1,51 @@ +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*, + java.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Prepare the action. + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); + SelectSubQueryItemAction action = new SelectSubQueryItemAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(false); + + if (!actionResult) + { + Hashtable propertyTable = action.getPropertyTable(); + String subQueryKey = (String)propertyTable.get(UDDIActionInputs.SUBQUERY_KEY); + String subQueryListKey = (String)propertyTable.get(UDDIActionInputs.SUBQUERY_LIST_KEY); + int subQueryListItemId = Integer.parseInt((String)propertyTable.get(UDDIActionInputs.SUBQUERY_LIST_ITEMID)); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; UTF-8"> +<jsp:include page="/scripts/panes.jsp" flush="true"/> +</head> +<body> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_ITEM_VALIDATION_FAILED",action.getItemName()))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(RemoveSubQueryItemAction.getActionLink(subQueryKey,subQueryListKey,subQueryListItemId)))%>"; +</script> +</body> +</html> +<% + } + else + { + // Determine if the action was added to the history list. + boolean isAddedToHistory = action.isAddedToHistory(); +%> +<%@ include file="/actions/SelectNodeToolAction.inc" %> +<% + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetBusinessActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetBusinessActionJSP.jsp new file mode 100644 index 000000000..939e71b79 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetBusinessActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<% + // Prepare the action. + ServiceGetBusinessAction action = new ServiceGetBusinessAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + boolean serviceExists = action.validateService(); + + if (!serviceExists) + { + int nodeId = Integer.parseInt((String)(action.getPropertyTable().get(ActionInputs.NODEID))); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_SERVICE_NODE"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearNavigatorNodeAction.getActionLink(nodeId)))%>"; +</script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetServiceInterfacesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetServiceInterfacesActionJSP.jsp new file mode 100644 index 000000000..9cb5f9968 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetServiceInterfacesActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<% + // Prepare the action. + ServiceGetServiceInterfacesAction action = new ServiceGetServiceInterfacesAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + boolean serviceExists = action.validateService(); + + if (!serviceExists) + { + int nodeId = Integer.parseInt((String)(action.getPropertyTable().get(ActionInputs.NODEID))); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_SERVICE_NODE"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearNavigatorNodeAction.getActionLink(nodeId)))%>"; +</script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetBusinessesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetBusinessesActionJSP.jsp new file mode 100644 index 000000000..e5b287902 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetBusinessesActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<% + // Prepare the action. + ServiceInterfaceGetBusinessesAction action = new ServiceInterfaceGetBusinessesAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + boolean siExists = action.validateServiceInterface(); + + if (!siExists) + { + int nodeId = Integer.parseInt((String)(action.getPropertyTable().get(ActionInputs.NODEID))); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_SI_NODE"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearNavigatorNodeAction.getActionLink(nodeId)))%>"; +</script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetServicesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetServicesActionJSP.jsp new file mode 100644 index 000000000..12967b16c --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetServicesActionJSP.jsp @@ -0,0 +1,49 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<% + // Prepare the action. + ServiceInterfaceGetServicesAction action = new ServiceInterfaceGetServicesAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + boolean siExists = action.validateServiceInterface(); + + if (!siExists) + { + int nodeId = Integer.parseInt((String)(action.getPropertyTable().get(ActionInputs.NODEID))); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_REMOVE_SI_NODE"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearNavigatorNodeAction.getActionLink(nodeId)))%>"; +</script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ShowPublisherAssertionsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ShowPublisherAssertionsActionJSP.jsp new file mode 100644 index 000000000..5acb1b3d1 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ShowPublisherAssertionsActionJSP.jsp @@ -0,0 +1,57 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + // Prepare the action. + ShowPublisherAssertionsAction action = new ShowPublisherAssertionsAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!action.isSubQueryInitiated()) + { + if (inputsValid) + { + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + } +%> + <script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; + </script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/LaunchSubQueryAction.inc" %> +<% + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SwitchPerspectiveFromUDDIActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SwitchPerspectiveFromUDDIActionJSP.jsp new file mode 100644 index 000000000..5ce374bba --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SwitchPerspectiveFromUDDIActionJSP.jsp @@ -0,0 +1,30 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% +// Prepare the action +SwitchPerspectiveFromUDDIAction action = new SwitchPerspectiveFromUDDIAction(controller); + +// Load the parameters for the action from the servlet request. +action.populatePropertyTable(request); + +// Run the action and obtain the return code (fail/success). +boolean actionResult = action.execute(); + +// Determine if the action was added to the history list. +boolean isAddedToHistory = action.isAddedToHistory(); +%> +<jsp:include page="/scripts/switchperspective.jsp" flush="true"/> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleCategoryNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleCategoryNodeActionJSP.jsp new file mode 100644 index 000000000..2ea0cf635 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleCategoryNodeActionJSP.jsp @@ -0,0 +1,58 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<% + String sessionId = request.getParameter(ActionInputs.SESSIONID); + HttpSession currentSession = (HttpSession)application.getAttribute(sessionId); + Controller controller = (Controller)currentSession.getAttribute("controller"); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/cbpanes.jsp" flush="true"/> +<% + // Prepare the action. + ToggleCategoryNodeAction action = new ToggleCategoryNodeAction(controller); + + // Load the parameters for the action from the servlet request. + action.populatePropertyTable(request); + + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(false); + + String treeContentVar = action.getTreeContentVar(); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<script language="javascript"> +<% + if (treeContentVar != null) + { +%> + if (isMicrosoftInternetExplorer()) + <%=treeContentVar%>.location = "<%=response.encodeURL(controller.getPathWithContext(action.getTreeContentPage()))%>"; + else + categoryBrowserWindow.location = "<%=response.encodeURL(controller.getPathWithContext(action.getTreeContainerPage()))%>"; +<% + } +%> +</script> +</head> +<body> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleNavigatorNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleNavigatorNodeActionJSP.jsp new file mode 100644 index 000000000..adee74004 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleNavigatorNodeActionJSP.jsp @@ -0,0 +1,21 @@ +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% +// Prepare the action. +ToggleNavigatorNodeAction action = new ToggleNavigatorNodeAction(controller); + +// Load the parameters for the action from the servlet request. +action.populatePropertyTable(request); + +// Run the action and obtain the return code (fail/success). +boolean actionResult = action.execute(); + +// Determine if the action was added to the history list. +boolean isAddedToHistory = action.isAddedToHistory(); +%> +<%@ include file="/actions/ToggleNodeAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferSubQueryResultsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferSubQueryResultsActionJSP.jsp new file mode 100644 index 000000000..948ecd795 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferSubQueryResultsActionJSP.jsp @@ -0,0 +1,42 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + TransferSubQueryResultsAction action = new TransferSubQueryResultsAction(controller); + + if (request.getParameter(UDDIActionInputs.SHOW_RESULTS_TARGET) != null) + action.enableShowResultsTarget(); + else + action.populatePropertyTable(request); + + boolean actionResult = action.execute(); + Node targetNode = action.getTargetNode(); + String targetNodeAnchorName = targetNode.getAnchorName(); +%> +<script language="javascript"> + navigatorContent.selectNode('<%=targetNodeAnchorName%>','<%=response.encodeURL(controller.getPathWithContext(targetNode.getOpenImagePath()))%>'); + navigatorContent.location.hash='#<%=targetNodeAnchorName%>'; + propertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_container.jsp"))%>"; +</script> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferToAddCategoryDataActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferToAddCategoryDataActionJSP.jsp new file mode 100644 index 000000000..02396a100 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferToAddCategoryDataActionJSP.jsp @@ -0,0 +1,44 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> +<% + String sessionId = request.getParameter(ActionInputs.SESSIONID); + String categoryTModelKey = request.getParameter(UDDIActionInputs.CATEGORY_TMODEL_KEY); + HttpSession currentSession = (HttpSession)application.getAttribute(sessionId); + Controller controller = (Controller)currentSession.getAttribute("controller"); + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); + NodeManager navigatorManager = uddiPerspective.getNavigatorManager(); + UDDIMainNode uddiMainNode = (UDDIMainNode)navigatorManager.getRootNode(); + RegistryNode regNode = uddiMainNode.getRegistryNode(navigatorManager.getSelectedNode()); + RegistryDetailsTool regDetailsTool = regNode.getRegDetailsTool(); + regDetailsTool.flagRowError(UDDIActionInputs.USER_DEFINED_CATEGORIES,categoryTModelKey); + regNode.getCurrentToolManager().setSelectedToolId(regDetailsTool.getToolId()); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<script language="javascript"> + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(SelectNavigatorNodeAction.getActionLink(regNode.getNodeId(),false)))%>"; +</script> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIAddToWSDLPerspectiveActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIAddToWSDLPerspectiveActionJSP.jsp new file mode 100644 index 000000000..3dd95fbeb --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIAddToWSDLPerspectiveActionJSP.jsp @@ -0,0 +1,54 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.ShowPerspectiveAction, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.UDDIAddToWSDLPerspectiveAction"%> + + +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% +// Prepare the action. +UDDIAddToWSDLPerspectiveAction action = new UDDIAddToWSDLPerspectiveAction(controller); + +// Load the parameters for the action from the servlet request. +boolean paramValid = action.populatePropertyTable(request); + +if (paramValid) { + // Run the action and obtain the return code (fail/success). + boolean actionResult = action.execute(); + if (actionResult) { +%> + <script language="javascript"> + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ShowPerspectiveAction.getActionLink(ActionInputs.PERSPECTIVE_WSDL,false)))%>"; + </script> +<% + } + else { +%> + <script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; + </script> +<% + } +} +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +</head> +<body> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToFileSystemActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToFileSystemActionJSP.jsp new file mode 100644 index 000000000..9103ff736 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToFileSystemActionJSP.jsp @@ -0,0 +1,24 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + java.io.*" %> + + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + // Prepare the action. + UDDIImportWSDLToFileSystemAction action = new UDDIImportWSDLToFileSystemAction(controller); +%> +<%@ include file="/actions/ImportToFileSystemAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToWorkbenchActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToWorkbenchActionJSP.jsp new file mode 100644 index 000000000..245820b3b --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToWorkbenchActionJSP.jsp @@ -0,0 +1,22 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + UDDIImportWSDLToWorkbenchAction action = new UDDIImportWSDLToWorkbenchAction(controller); +%> +<%@ include file="/actions/ImportToWorkbenchAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDILaunchWebServiceWizardActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDILaunchWebServiceWizardActionJSP.jsp new file mode 100644 index 000000000..c331f6357 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDILaunchWebServiceWizardActionJSP.jsp @@ -0,0 +1,19 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + UDDILaunchWebServiceWizardAction action = new UDDILaunchWebServiceWizardAction(controller); +%> +<%@ include file="/actions/LaunchWebServiceWizardAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UnpublishActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UnpublishActionJSP.jsp new file mode 100644 index 000000000..387471ec0 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UnpublishActionJSP.jsp @@ -0,0 +1,36 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +</head> +<body> +<% + // Prepare the action. + UnpublishAction action = new UnpublishAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateAction.inc b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateAction.inc new file mode 100644 index 000000000..08f402a31 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateAction.inc @@ -0,0 +1,47 @@ +<% +/******************************************************************************* + * Copyright (c) 2000, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<% + if (!inputsValid) + { +%> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +<% + } + else + { + boolean refreshResult = action.refreshFromRegistry(); + + if (!refreshResult) + { + session.setAttribute(UDDIActionInputs.PUBLISH_ACTION,action); +%> +<script language="javascript"> + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_PUBLISH_ITEM"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/actions/UpdateNewPublishActionJSP.jsp"))%>"; + else + propertiesContent.requestSubmitted = false; +</script> +<% + } + else + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + } +%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateBusinessActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateBusinessActionJSP.jsp new file mode 100644 index 000000000..371861c6d --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateBusinessActionJSP.jsp @@ -0,0 +1,40 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + UpdateBusinessAction action = new UpdateBusinessAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/UpdateAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateNewPublishActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateNewPublishActionJSP.jsp new file mode 100644 index 000000000..de1471986 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateNewPublishActionJSP.jsp @@ -0,0 +1,32 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + UpdateAction action = (UpdateAction)session.getAttribute(UDDIActionInputs.PUBLISH_ACTION); + session.removeAttribute(UDDIActionInputs.PUBLISH_ACTION); + boolean inputsValid = true; +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateRegistryActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateRegistryActionJSP.jsp new file mode 100644 index 000000000..0eca62a41 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateRegistryActionJSP.jsp @@ -0,0 +1,40 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + UpdateRegistryAction action = new UpdateRegistryAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/UpdateAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceActionJSP.jsp new file mode 100644 index 000000000..ef7afb61e --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceActionJSP.jsp @@ -0,0 +1,86 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + UpdateServiceAction action = new UpdateServiceAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); + + if (!inputsValid) + { +%> +<script language="javascript"> + propertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/properties_content.jsp"))%>"; + statusContent.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/status_content.jsp"))%>"; +</script> +<% + } + else + { + boolean refreshServiceResult = action.refreshFromRegistry(); + boolean refreshBusinessResult = action.refreshBusinessFromRegistry(); + if (!refreshServiceResult) + { + session.setAttribute(UDDIActionInputs.PUBLISH_ACTION,action); + if (!refreshBusinessResult) + { +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_SERVICE_PUBLISH_BUSINESS"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/actions/UpdateServiceNewPublishBusinessActionJSP.jsp"))%>"; + else + propertiesContent.requestSubmitted = false; +</script> +<% + } + else + { +%> +<script language="javascript"> + if (confirm("<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("MSG_QUESTION_PUBLISH_ITEM"))%>")) + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("uddi/actions/UpdateNewPublishActionJSP.jsp"))%>"; + else + propertiesContent.requestSubmitted = false; +</script> +<% + } + } + else + { +%> +<%@ include file="/uddi/actions/NewNodeAction.inc" %> +<% + } + } +%> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceInterfaceActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceInterfaceActionJSP.jsp new file mode 100644 index 000000000..3345e2a85 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceInterfaceActionJSP.jsp @@ -0,0 +1,40 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.platform.util.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<% + UDDIPerspective uddiPerspective = controller.getUDDIPerspective(); +%> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + // Prepare the action. + UpdateServiceInterfaceAction action = new UpdateServiceInterfaceAction(controller); + + // Load the parameters for the action from the servlet request. + boolean inputsValid = action.populatePropertyTable(request); +%> +<%@ include file="/uddi/actions/UpdateAction.inc" %> +</body> +</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceNewPublishBusinessActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceNewPublishBusinessActionJSP.jsp new file mode 100644 index 000000000..64e37cf11 --- /dev/null +++ b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceNewPublishBusinessActionJSP.jsp @@ -0,0 +1,36 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*, + org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.*" %> + +<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> +</script> +<jsp:include page="/uddi/scripts/uddipanes.jsp" flush="true"/> +</head> +<body> +<% + UpdateServiceAction action = (UpdateServiceAction)session.getAttribute(UDDIActionInputs.PUBLISH_ACTION); + session.removeAttribute(UDDIActionInputs.PUBLISH_ACTION); + + RegPublishTool regPublishTool = action.setupRegPublishTool(); +%> +<script language="javascript"> + perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(regPublishTool.getSelectToolActionHref(false)))%>"; +</script> +</body> +</html> |