fix redirects
This commit is contained in:
@@ -40,7 +40,7 @@ public class MuWireServlet extends HttpServlet {
|
||||
resp.sendRedirect("/MuWire/MuWire.jsp");
|
||||
} else {
|
||||
resp.setContentType("text/html");
|
||||
resp.getWriter().println("<html>MW is initialized</html");
|
||||
resp.getWriter().println("<html>MW is initialized</html>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
|
||||
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ page import="java.io.File" %>
|
||||
<%@ page import="com.muwire.webui.MuWireClient" %>
|
||||
|
||||
<html
|
||||
<html>
|
||||
<body>
|
||||
<%
|
||||
String nickname = request.getParameter("nickname");
|
||||
@@ -14,6 +16,6 @@
|
||||
client.initMWProps(nickname, new File(downloadLocation), new File(incompleteLocation));
|
||||
client.start();
|
||||
%>
|
||||
<c:redirect url="/"/>
|
||||
<c:redirect url="/index.jsp"/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user