diff options
author | Rob Stryker | 2018-01-25 18:11:24 +0000 |
---|---|---|
committer | Rob Stryker | 2018-01-25 18:11:24 +0000 |
commit | 932502c1094bdefdc463690b2292589b72f0cae4 (patch) | |
tree | b958d9097b645946999f9b1f0e3eb33ad94d84b3 /core/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsexplorer.jsp | |
parent | a3b4f57ca16c1d8b05dd04e23e374ca080d2f2f1 (diff) | |
download | webtools.webservices-932502c1094bdefdc463690b2292589b72f0cae4.tar.gz webtools.webservices-932502c1094bdefdc463690b2292589b72f0cae4.tar.xz webtools.webservices-932502c1094bdefdc463690b2292589b72f0cae4.zip |
Move all files into core subdirectory
Signed-off-by: Rob Stryker <rob@oxbeef.net>
Diffstat (limited to 'core/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsexplorer.jsp')
-rw-r--r-- | core/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsexplorer.jsp | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/core/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsexplorer.jsp b/core/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsexplorer.jsp new file mode 100644 index 000000000..f717d12b2 --- /dev/null +++ b/core/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsexplorer.jsp @@ -0,0 +1,99 @@ +<% +/******************************************************************************* + * Copyright (c) 2001, 2010 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 + * 20100414 306773 mahutch@ca.ibm.com - Mark Hutchinson, make session time out configurable + *******************************************************************************/ +%> +<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.perspective.*, + org.eclipse.wst.ws.internal.explorer.platform.constants.*, + org.eclipse.wst.ws.internal.explorer.*, + org.eclipse.wst.ws.internal.explorer.platform.util.URLUtils, + java.util.Enumeration, + java.net.*, + java.io.*"%> + +<!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"> + function initWindowName(name) + { + window.name = name; + } + </script> + <% + String sessionId = session.getId(); + %> + <jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"> + <%! + private void resetController(ServletContext application,String sessionId,HttpSession session,HttpServletRequest request,Controller controller){ + // Add the session to the application. This allows us to resurrect the session even if the browser chooses not to participate. + application.setAttribute(sessionId,session); + + // Set Max inactivity time out value to 30mins. + session.setMaxInactiveInterval(controller.getSessionTimeoutInMinutes() * 60); + + // LaunchOptionManager (below) handles most options, + // but need to get state and install locations earlier, + // specifically before controller.init(). + Enumeration paramNames = request.getParameterNames(); + while (paramNames.hasMoreElements()) + { + String paramName = (String)paramNames.nextElement(); + String[] paramValues = request.getParameterValues(paramName); + if (paramValues != null && paramValues.length > 0) + { + String decodedParamName = URLUtils.decode(paramName); + if (decodedParamName.equals(LaunchOptions.DEFAULT_FAVORITES_LOCATION)) + { + controller.setDefaultFavoritesLocation(paramValues[0]); + } + else if (decodedParamName.equals(LaunchOptions.STATE_LOCATION)) + { + controller.setStateLocation(paramValues[0]); + } + } + } + + // controller.init() + controller.init(sessionId,application,request.getContextPath()); + } + %> + <%//resetController(application,sessionId,session,request,controller);%> + </jsp:useBean> + <% + // Check if session Controller needs to be re-initialized + if (controller.getSessionId()==null){ + resetController(application,sessionId,session,request,controller); + } + + // preload from LaunchOptionManager + String key = request.getParameter(URLUtils.encode(WSExplorerContext.ID)); + if (key != null && key.length() > 0) + { + LaunchOptionsManager manager = LaunchOptionsManager.getInstance(); + manager.manage(key, sessionId, application); + } + + %> + <jsp:include page="/actionengine.jsp" flush="true"/> + <title><%=controller.getMessage("TITLE_WSEXPLORER")%></title> +</head> +<% +// reset perspective content to blank +controller.enablePerspectiveContentBlank(true); +%> +<frameset rows="0,35,*" border=0 onload="initWindowName('<%=FrameNames.WINDOW_NAME_WSEXPLORER_JSP%>')"> + <frame name="<%=FrameNames.PERSPECTIVE_WORKAREA%>" title="<%=controller.getMessage("FRAME_TITLE_PERSPECTIVE_WORKAREA")%>" frameborder=0 noresize> + <frame name="<%=FrameNames.PERSPECTIVE_TOOLBAR%>" title="<%=controller.getMessage("FRAME_TITLE_PERSPECTIVE_TOOLBAR")%>" src="<%=response.encodeURL(controller.getPathWithContext("perspective_toolbar.jsp"))%>" marginwidth=0 marginheight=0 scrolling="no" frameborder=0 noresize> + <frame name="<%=FrameNames.PERSPECTIVE_CONTENT%>" title="<%=controller.getMessage("FRAME_TITLE_PERSPECTIVE_CONTENT")%>" src="<%=response.encodeURL(controller.getPathWithContext("perspective_content.jsp"))%>" marginwidth=0 marginheight=0 scrolling="no" frameborder=0> +</frameset> +</html> |