org.eclipse.help.webapp/index.jsp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.31 - (download) (annotate)
Sat Nov 17 00:17:34 2007 UTC (2 years ago) by cgoldthor
Branch: MAIN
CVS Tags: v20080121, v20080128, v20090123, v20090120, v20091123, v20080908, v20080414, v20091019, v20091012, v20081209, v20090223, v20081205, v20071126, v20091009_35x, v20080513, v20081020, v20090720, v20090727, v20081124, v20090428_1700, v20090819_35x, v20080702_34x, v20080201, v20090824, v20090216, v20080114, v20090420, R3_4, R3_5, v20090126_1515, v20090921, v20080429, v20090428, v20080425, v20081014, v20091023, v20080804, v20081024, v20071203, v20080331, v20080721, v20080728, v20090911, v20071119, v20080509, v20080507, v20090105, v20090126, M20080805_34x, v20080211, v20081222, v20080714, v20080107, v20090330, v20090413, v20080430, v20080818, v20080811, v20080324, v20080328, R3_4_2, R3_4_1, v20090928, v20080205, v20081030, v20090112, v20090714_35x, v20080407, v20080310, v20080317, v20090302, R3_5_1, v20080630, v20090406, M20090819_34x, v20080521, v20080528, v20090429_1800, HEAD
Branch point for: R3_4_maintenance, R3_5_maintenance
Changes since 1.30: +2 -1 lines
Bug 201666 – [Webapp] Changes made for to help system to use it as a WAR
<%--
 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
--%>
<%@ page import="org.eclipse.help.internal.webapp.data.*" errorPage="/advanced/err.jsp" contentType="text/html; charset=UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	LayoutData data = new LayoutData(application,request, response);
	ServerState.webappStarted(application,request, response);

	if (request.getParameter("noscript") != null) {
		request.getRequestDispatcher("/basic/index.jsp" + data.getQuery()).forward(request, response);
		return;
	}

	if(data.isBot()){
		TocData tData = new TocData(application,request, response);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=data.getWindowTitle()%></title>
</head>
<body>
<% tData.generateLinks(out); %>
</body>
</html>	
<%
	}else if(data.isAdvancedUI()){
		request.getRequestDispatcher("/advanced/index.jsp" + data.getQuery()).forward(request, response);
	}else{
		request.getRequestDispatcher("/basic/index.jsp" + data.getQuery()).forward(request, response);
	}
%>