diff options
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions')
24 files changed, 0 insertions, 1230 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/.cvsignore deleted file mode 100644 index 5738ffe94..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.java -*.class diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ClearWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ClearWSDLActionJSP.jsp deleted file mode 100644 index 8bc35cd76..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ClearWSDLActionJSP.jsp +++ /dev/null @@ -1,44 +0,0 @@ -<% -/******************************************************************************* - * 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.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.ClearWSDLAction"%> -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -if (controller.getSessionId() == null) { -%> - - <script language="javascript"> - var perspectiveContent = top.frames["<%=FrameNames.PERSPECTIVE_CONTENT%>"]; - perspectiveContent.location = "http://<%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>/actions/SessionTimedOut.jsp"; - </script> -<% -} -else { -%> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<% -// Prepare the action. -ClearWSDLAction action = new ClearWSDLAction(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(); -%> -<%@ include file="/actions/ClearNodeAction.inc" %> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/CreateInstanceActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/CreateInstanceActionJSP.jsp deleted file mode 100644 index ca4038455..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/CreateInstanceActionJSP.jsp +++ /dev/null @@ -1,35 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.FragmentConstants, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.CreateInstanceAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <% - CreateInstanceAction action = new CreateInstanceAction(controller); - action.populatePropertyTable(request); - action.execute(); - %> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - </script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp deleted file mode 100644 index cbbf47051..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp +++ /dev/null @@ -1,43 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <% - // Prepare the action. - InvokeWSDLHttpGetOperationFormAction action = new InvokeWSDLHttpGetOperationFormAction(controller); - - // Load the parameters for the action from the servlet request. - boolean inputsValid = action.populatePropertyTable(request); - - if (inputsValid) - { - boolean actionResult = action.execute(); - } - %> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp deleted file mode 100644 index f0c2d42ee..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp +++ /dev/null @@ -1,43 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <% - // Prepare the action. - InvokeWSDLHttpPostOperationFormAction action = new InvokeWSDLHttpPostOperationFormAction(controller); - - // Load the parameters for the action from the servlet request. - boolean inputsValid = action.populatePropertyTable(request); - - if (inputsValid) - { - boolean actionResult = action.execute(); - } - %> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp deleted file mode 100644 index 51239fc52..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp +++ /dev/null @@ -1,144 +0,0 @@ -<% -/******************************************************************************* - * Copyright (c) 2001, 2007 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 - * yyyymmdd bug Email and other contact information - * -------- -------- ----------------------------------------------------------- - * 20070413 176493 makandre@ca.ibm.com - Andrew Mak, WSE: Make message/transport stack pluggable - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.perspective.MessageQueue, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLActionInputs, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.transport.HTTPTransport, - org.eclipse.wst.ws.internal.explorer.transport.HTTPTransportException, - sun.misc.BASE64Decoder, - javax.servlet.http.HttpServletResponse"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -InvokeWSDLSOAPOperationFormAction action = new InvokeWSDLSOAPOperationFormAction(controller); -String httpBasicAuthData = request.getHeader(HTTPTransport.HTTP_HEADER_AUTH); -if (httpBasicAuthData != null && httpBasicAuthData.length() > 0) -{ - int basicIndex = httpBasicAuthData.indexOf(HTTPTransport.BASIC); - if (basicIndex != -1) - { - BASE64Decoder decoder = new BASE64Decoder(); - httpBasicAuthData = new String(decoder.decodeBuffer(httpBasicAuthData.substring(basicIndex + HTTPTransport.BASIC.length() + 1))); - int colonIndex = httpBasicAuthData.indexOf(HTTPTransport.COLON); - if (colonIndex != -1) - { - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_USERNAME, httpBasicAuthData.substring(0, colonIndex)); - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_PASSWORD, httpBasicAuthData.substring(colonIndex + 1, httpBasicAuthData.length())); - } - } -} - -// Load the parameters for the action from the servlet request. -boolean inputsValid = action.populatePropertyTable(request); -if (!inputsValid) -{ -%> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> -<% -} -else -{ - try - { - // Run the action and obtain the return code (fail/success). - boolean actionResult = action.execute(); -%> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - <% - if (actionResult) - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_result_content.jsp"))%>"; - <% - } - else - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - <% - } - %> - </script> - </body> - </html> -<% - } - catch (HTTPTransportException httpe) - { - int code = httpe.getStatusCode(); - if (code == HttpServletResponse.SC_UNAUTHORIZED) - { - response.setStatus(code); - response.setHeader(HTTPTransport.HTTP_HEADER_CONTENT_LENGTH, String.valueOf(0)); - String wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH.toLowerCase()); - if (wwwAuthData == null) - wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH); - if (wwwAuthData == null) - wwwAuthData = HTTPTransport.BASIC; - response.setHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH, wwwAuthData); - } - else - { - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - MessageQueue messageQueue = wsdlPerspective.getMessageQueue(); - messageQueue.addMessage(controller.getMessage("MSG_ERROR_UNEXPECTED")); - messageQueue.addMessage(String.valueOf(code)); - messageQueue.addMessage(httpe.getMessage()); - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - } -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp deleted file mode 100644 index 41cc9e971..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp +++ /dev/null @@ -1,179 +0,0 @@ -<% -/******************************************************************************* - * Copyright (c) 2001, 2007 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 - * yyyymmdd bug Email and other contact information - * -------- -------- ----------------------------------------------------------- - * 20070413 176493 makandre@ca.ibm.com - Andrew Mak, WSE: Make message/transport stack pluggable - *******************************************************************************/ -%> -<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLActionInputs, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.transport.HTTPTransport, - org.eclipse.wst.ws.internal.explorer.platform.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.transport.HTTPTransportException, - sun.misc.BASE64Decoder, - javax.servlet.http.HttpServletResponse, - javax.wsdl.*"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -InvokeWSDLSOAPOperationSourceAction action = new InvokeWSDLSOAPOperationSourceAction(controller); - -// Load the parameters for the action from the servlet request. -boolean inputsValid = action.populatePropertyTable(request); - -if (action.wasSaveAsSelected()) -{ - // write to file system - response.setContentType("application/octet-stream"); - response.setHeader("Content-Disposition","attachment;filename="+action.getDefaultSaveAsFileName()); - action.writeSourceContent(response.getOutputStream()); -} -else -{ - if (!inputsValid) - { - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - else - { - if (action.wasNewFileSelected()) - { - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - else - { - String httpBasicAuthData = request.getHeader(HTTPTransport.HTTP_HEADER_AUTH); - if (httpBasicAuthData != null && httpBasicAuthData.length() > 0) - { - int basicIndex = httpBasicAuthData.indexOf(HTTPTransport.BASIC); - if (basicIndex != -1) - { - BASE64Decoder decoder = new BASE64Decoder(); - httpBasicAuthData = new String(decoder.decodeBuffer(httpBasicAuthData.substring(basicIndex + HTTPTransport.BASIC.length() + 1))); - int colonIndex = httpBasicAuthData.indexOf(HTTPTransport.COLON); - if (colonIndex != -1) - { - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_USERNAME, httpBasicAuthData.substring(0, colonIndex)); - action.addProperty(WSDLActionInputs.HTTP_BASIC_AUTH_PASSWORD, httpBasicAuthData.substring(colonIndex + 1, httpBasicAuthData.length())); - } - } - } - try - { - // Run the action and obtain the return code (fail/success). - boolean actionResult = action.execute(); - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - <% - if (actionResult) - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_result_content.jsp"))%>"; - <% - } - else - { - %> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - <% - } - %> - </script> - </body> - </html> -<% - } - catch (HTTPTransportException httpe) - { - int code = httpe.getStatusCode(); - if (code == HttpServletResponse.SC_UNAUTHORIZED) - { - response.setStatus(code); - response.setHeader(HTTPTransport.HTTP_HEADER_CONTENT_LENGTH, String.valueOf(0)); - String wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH.toLowerCase()); - if (wwwAuthData == null) - wwwAuthData = httpe.getHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH); - if (wwwAuthData == null) - wwwAuthData = HTTPTransport.BASIC; - response.setHeader(HTTPTransport.HTTP_HEADER_WWW_AUTH, wwwAuthData); - } - else - { - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - MessageQueue messageQueue = wsdlPerspective.getMessageQueue(); - messageQueue.addMessage(controller.getMessage("MSG_ERROR_UNEXPECTED")); - messageQueue.addMessage(String.valueOf(code)); - messageQueue.addMessage(httpe.getMessage()); - %> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"></script> - </head> - <body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> - <script language="javascript"> - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> - </body> - </html> - <% - } - } - } - } -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/OpenWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/OpenWSDLActionJSP.jsp deleted file mode 100644 index 92fe255b3..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/OpenWSDLActionJSP.jsp +++ /dev/null @@ -1,59 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.OpenWSDLAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> - </script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<% - // Prepare the action. - OpenWSDLAction action = new OpenWSDLAction(controller); - - // Load the parameters for the action from the servlet request. - boolean inputsValid = action.populatePropertyTable(request); - if (!inputsValid) { -%> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> -<% - } - else { - // Run the action and obtain the return code (fail/success). - boolean actionResult = action.execute(); -%> - <script language="javascript"> - if (isMicrosoftInternetExplorer()) { - wsdlNavigatorContent.location="<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_navigator_content.jsp"))%>"; - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - } - else { - perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_perspective_content.jsp"))%>"; - } - </script> -<% - } -%> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/RefreshWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/RefreshWSDLActionJSP.jsp deleted file mode 100644 index 98bea55f7..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/RefreshWSDLActionJSP.jsp +++ /dev/null @@ -1,90 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.actions.RefreshWSDLAction, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.ClearWSDLAction, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - 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"/> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<% -if (controller.getSessionId() == null) { -%> - - <script language="javascript"> - var perspectiveContent = top.frames["<%=FrameNames.PERSPECTIVE_CONTENT%>"]; - perspectiveContent.location = "http://<%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>/actions/SessionTimedOut.jsp"; - </script> -<% -} -else { -%> - - <script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> - </script> - <jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - <% - // Prepare the action. - RefreshWSDLAction action = new RefreshWSDLAction(controller); - - // The action may be executed via program link. - boolean paramsValid = action.populatePropertyTable(request); - if (paramsValid) { - int nodeID = Integer.parseInt((String)action.getPropertyTable().get(ActionInputs.NODEID)); - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); - NodeManager nodeManager = wsdlPerspective.getNodeManager(); - Node wsdlNode = nodeManager.getNode(nodeID); - - // Run the action. - boolean actionResult = action.execute(); - - if (actionResult) { - %> - <script language="javascript"> - if (isMicrosoftInternetExplorer()) { - wsdlNavigatorContent.location="<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_navigator_content.jsp"))%>"; - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - } - else { - perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_perspective_content.jsp"))%>"; - } - </script> - <% - } - else { - %> - <script language="javascript"> - if (confirm("<%=HTMLUtils.JSMangle(wsdlPerspective.getMessage("MSG_QUESTION_REMOVE_WSDL_NODE", wsdlNode.getNodeName()))%>")) - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext(ClearWSDLAction.getActionLink(nodeID)))%>"; - else { - wsdlPropertiesContainer.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_container.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - } - </script> - <% - } - } -%> -<% -} -%> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ResizeWSDLFramesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ResizeWSDLFramesActionJSP.jsp deleted file mode 100644 index 1a7647266..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ResizeWSDLFramesActionJSP.jsp +++ /dev/null @@ -1,55 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.perspective.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% - // Create the action. - ResizeWSDLFramesAction action = new ResizeWSDLFramesAction(controller); - - // Populate the action with the request properties. - boolean result = action.populatePropertyTable(request); -%> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<jsp:include page="/wsdl/scripts/wsdlframesets.jsp" flush="true"/> -<script language="javascript" src="<%=response.encodeURL(controller.getPathWithContext("scripts/browserdetect.js"))%>"> -</script> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<% - if (result) - { - action.execute(false); - - WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -%> -<script language="javascript"> - if (isMicrosoftInternetExplorer()) - { - var perspectiveContentFrameset = getPerspectiveContentFrameset(); - var actionsContainerFrameset = getActionsContainerFrameset(); - perspectiveContentFrameset.setAttribute("cols","<%=wsdlPerspective.getPerspectiveContentFramesetCols()%>"); - actionsContainerFrameset.setAttribute("rows","<%=wsdlPerspective.getActionsContainerFramesetRows()%>"); - } - else - perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_perspective_content.jsp"))%>"; -</script> -<% - } -%> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLNavigatorNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLNavigatorNodeActionJSP.jsp deleted file mode 100644 index 9cd44a41c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLNavigatorNodeActionJSP.jsp +++ /dev/null @@ -1,47 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLNavigatorNodeAction" %> -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -if (controller.getSessionId() == null) { -%> - - <script language="javascript"> - var perspectiveContent = top.frames["<%=FrameNames.PERSPECTIVE_CONTENT%>"]; - perspectiveContent.location = "http://<%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>/actions/SessionTimedOut.jsp"; - </script> -<% -} -else { -%> -<% -// Prepare the action. -SelectWSDLNavigatorNodeAction action = new SelectWSDLNavigatorNodeAction(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/wsdl/actions/SelectWSDLPropertiesToolActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLPropertiesToolActionJSP.jsp deleted file mode 100644 index 147641419..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLPropertiesToolActionJSP.jsp +++ /dev/null @@ -1,33 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SelectWSDLPropertiesToolAction" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -SelectWSDLPropertiesToolAction action = new SelectWSDLPropertiesToolAction(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/wsdl/actions/SwitchPerspectiveFromWSDLActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchPerspectiveFromWSDLActionJSP.jsp deleted file mode 100644 index 901c76648..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchPerspectiveFromWSDLActionJSP.jsp +++ /dev/null @@ -1,30 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.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 -SwitchPerspectiveFromWSDLAction action = new SwitchPerspectiveFromWSDLAction(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/wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp deleted file mode 100644 index 6fd7692c7..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp +++ /dev/null @@ -1,38 +0,0 @@ -<% -/******************************************************************************* - * Copyright (c) 2002, 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.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -if (wsdlPerspective.getStatusContentType() == WSDLPerspective.STATUS_CONTENT_RESULT_FORM) - wsdlPerspective.setStatusContentType(WSDLPerspective.STATUS_CONTENT_RESULT_SOURCE); -else - wsdlPerspective.setStatusContentType(WSDLPerspective.STATUS_CONTENT_RESULT_FORM); -%> -<script language="javascript"> - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_result_content.jsp"))%>"; -</script> - -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp deleted file mode 100644 index e17adf996..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp +++ /dev/null @@ -1,38 +0,0 @@ -<% -/******************************************************************************* - * Copyright (c) 2002, 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.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.perspective.Node, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLDetailsTool"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); -Node wsdlNode = wsdlPerspective.getNodeManager().getSelectedNode(); -WSDLDetailsTool wsdlDetailsTool = (WSDLDetailsTool)wsdlNode.getToolManager().getSelectedTool(); -wsdlDetailsTool.toggleViewId(); -%> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; -</script> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp deleted file mode 100644 index d5e2d8911..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp +++ /dev/null @@ -1,39 +0,0 @@ -<% -/******************************************************************************* - * Copyright (c) 2002, 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.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.FragmentConstants, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.InvokeWSDLOperationTool"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -InvokeWSDLOperationTool invokeWSDLOperationTool = (InvokeWSDLOperationTool)controller.getWSDLPerspective().getNodeManager().getSelectedNode().getCurrentToolManager().getSelectedTool(); -if (invokeWSDLOperationTool.getFragmentViewID().equals(FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM)) - invokeWSDLOperationTool.setFragmentViewID(FragmentConstants.FRAGMENT_VIEW_SWITCH_FORM_TO_SOURCE); -else - invokeWSDLOperationTool.setFragmentViewID(FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM); -%> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; -</script> - -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp deleted file mode 100644 index 545ac1c3d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp +++ /dev/null @@ -1,57 +0,0 @@ -<% -/******************************************************************************* - * 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.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.FragmentConstants, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.SynchronizeFragmentViewsAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> - -<% -SynchronizeFragmentViewsAction action = new SynchronizeFragmentViewsAction(controller); -boolean paramValid = action.populatePropertyTable(request); -String viewID = (String)action.getPropertyTable().get(FragmentConstants.FRAGMENT_VIEW_ID); -boolean sourceToForm = viewID.equals(FragmentConstants.FRAGMENT_VIEW_SWITCH_SOURCE_TO_FORM); -if (sourceToForm) { - if (paramValid) { -%> - <script language="javascript"> - if (!confirm("<%=controller.getWSDLPerspective().getMessage("MSG_QUESTION_SYNC_VIEWS")%>")) - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp"))%>"; - </script> -<% - } - else { -%> - <script language="javascript"> - if (!confirm("<%=controller.getWSDLPerspective().getMessage("MSG_QUESTION_SYNC_VIEWS_DESPITE_INVALID_SOURCE_CONTENT")%>")) - perspectiveWorkArea.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp"))%>"; - </script> -<% - } -} -action.execute(); -%> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; -</script> - -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ToggleWSDLNavigatorNodeActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ToggleWSDLNavigatorNodeActionJSP.jsp deleted file mode 100644 index 1e586d042..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ToggleWSDLNavigatorNodeActionJSP.jsp +++ /dev/null @@ -1,33 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -ToggleWSDLNavigatorNodeAction action = new ToggleWSDLNavigatorNodeAction(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/wsdl/actions/UpdateWSDLBindingActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/UpdateWSDLBindingActionJSP.jsp deleted file mode 100644 index 1616c2398..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/UpdateWSDLBindingActionJSP.jsp +++ /dev/null @@ -1,50 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.WSDLFrameNames, - org.eclipse.wst.ws.internal.explorer.platform.constants.FrameNames, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.UpdateWSDLBindingAction"%> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -if (controller.getSessionId() == null) { -%> - - <script language="javascript"> - var perspectiveContent = top.frames["<%=FrameNames.PERSPECTIVE_CONTENT%>"]; - perspectiveContent.location = "http://<%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>/actions/SessionTimedOut.jsp"; - </script> -<% -} -else { -%> -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<% - UpdateWSDLBindingAction action = new UpdateWSDLBindingAction(controller); - action.populatePropertyTable(request); - action.execute(); -%> - <script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; - </script> -</body> -</html> -<% -} -%> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLAddToFavoritesActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLAddToFavoritesActionJSP.jsp deleted file mode 100644 index db0652ce4..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLAddToFavoritesActionJSP.jsp +++ /dev/null @@ -1,41 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.WSDLAddToFavoritesAction"%> - - -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -// Prepare the action. -WSDLAddToFavoritesAction action = new WSDLAddToFavoritesAction(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(); -%> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<script language="javascript"> - wsdlPropertiesContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_properties_content.jsp"))%>"; - wsdlStatusContent.location = "<%=response.encodeURL(controller.getPathWithContext("wsdl/wsdl_status_content.jsp"))%>"; -</script> -</body> -</html> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLCheckFavoriteExistsActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLCheckFavoriteExistsActionJSP.jsp deleted file mode 100644 index 00f48006d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLCheckFavoriteExistsActionJSP.jsp +++ /dev/null @@ -1,66 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, - org.eclipse.wst.ws.internal.explorer.platform.constants.*, - org.eclipse.wst.ws.internal.explorer.platform.util.*, - java.util.*" %> - - -<jsp:include page="/wsdl/scripts/wsdlpanes.jsp" flush="true"/> -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> - -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html lang="<%=response.getLocale().getLanguage()%>"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>"> -<form action="<%=response.encodeURL(controller.getPathWithContext("wsdl/actions/WSDLAddToFavoritesActionJSP.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. -WSDLAddToFavoritesAction action = new WSDLAddToFavoritesAction(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.getWSDLPerspective().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/wsdl/actions/WSDLImportWSDLToFileSystemActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToFileSystemActionJSP.jsp deleted file mode 100644 index 0df02da62..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToFileSystemActionJSP.jsp +++ /dev/null @@ -1,23 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.actions.WSDLImportWSDLToFileSystemAction, - 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. -WSDLImportWSDLToFileSystemAction action = new WSDLImportWSDLToFileSystemAction(controller); -%> -<%@ include file="/actions/ImportToFileSystemAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp deleted file mode 100644 index d02382edc..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp +++ /dev/null @@ -1,22 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.actions.WSDLImportWSDLToWorkbenchAction, - 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"/> -<% -WSDLImportWSDLToWorkbenchAction action = new WSDLImportWSDLToWorkbenchAction(controller); -%> -<%@ include file="/actions/ImportToWorkbenchAction.inc" %> diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp deleted file mode 100644 index 8f8760f34..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp +++ /dev/null @@ -1,19 +0,0 @@ -<% -/******************************************************************************* - * 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.wsdl.actions.WSDLLaunchWebServiceWizardAction" %> - -<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/> -<% -WSDLLaunchWebServiceWizardAction action = new WSDLLaunchWebServiceWizardAction(controller); -%> -<%@ include file="/actions/LaunchWebServiceWizardAction.inc" %> |