| <%-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --%><%-- |
| Example JSP Page to Test Protocol-Http Plugin |
| --%><%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><% |
| String path = request.getContextPath(); |
| String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; |
| %> |
| |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <base href="<%=basePath%>"> |
| |
| <title>My JSP page</title> |
| |
| <meta http-equiv="pragma" content="no-cache"> |
| <meta http-equiv="cache-control" content="no-cache"> |
| <meta http-equiv="expires" content="0"> |
| <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> |
| <meta http-equiv="description" content="This is my page"> |
| <!-- |
| <link rel="stylesheet" type="text/css" href="styles.css"> |
| --> |
| |
| </head> |
| |
| <body> |
| <% |
| response.setStatus(302); |
| response.setHeader( "Location", "http://nutch.apache.org"); |
| response.setHeader( "Connection", "close" ); |
| %> |
| You are sucessfully redirected by JSP<br> |
| </body> |
| </html> |