Change HTML redirects to HTTP

This commit is contained in:
Sean Owen 2014-09-10 22:53:42 +01:00
parent 012662fa3c
commit fa5d7e6b0d
3 changed files with 11 additions and 25 deletions

View file

@ -82,7 +82,7 @@ import javax.servlet.http.Part;
maxFileSize = 10_000_000,
maxRequestSize = 10_000_000,
fileSizeThreshold = 1_000_000,
location = "/tmp")
location = "/tmp/DecodeServlet")
@WebServlet("/w/decode")
public final class DecodeServlet extends HttpServlet {

View file

@ -16,16 +16,9 @@
-->
<!-- Author: Sean Owen -->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
<jsp:directive.page contentType="text/html" session="false"/>
<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
<html>
<head>
<title>Redirect</title>
<meta charset="UTF-8"/>
<meta http-equiv="Refresh" content="0;url=w/decode.jspx"/>
</head>
<body>
</body>
</html>
<jsp:directive.page session="false"/>
<jsp:scriptlet>
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location", "w/decode.jspx");
</jsp:scriptlet>
</jsp:root>

View file

@ -16,16 +16,9 @@
-->
<!-- Author: Sean Owen -->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
<jsp:directive.page contentType="text/html" session="false"/>
<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
<html>
<head>
<title>Redirect</title>
<meta charset="UTF-8"/>
<meta http-equiv="Refresh" content="0;url=decode.jspx"/>
</head>
<body>
</body>
</html>
<jsp:directive.page session="false"/>
<jsp:scriptlet>
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location", "decode.jspx");
</jsp:scriptlet>
</jsp:root>