diff src/global/web/Sitemap.java @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/global/web/Sitemap.java	Thu Mar 21 19:15:52 2019 -0600
@@ -0,0 +1,33 @@
+package global.web;
+
+import global.HtmlGlobalUtils;
+
+import java.io.PrintWriter;
+import java.io.IOException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+
+public final class Sitemap extends HttpServlet {
+	protected void service(HttpServletRequest request,HttpServletResponse response)
+		throws IOException
+	{
+		response.setContentType("text/plain");
+		response.setCharacterEncoding("UTF-8");
+		PrintWriter out = response.getWriter();
+
+		String home = "https://www.nabble.com";
+		out.println(home + "/");
+		out.println(home + "/ContactUs.jtp");
+		out.println(home + "/PoweredBy.jtp");
+		out.println(home + "/PrivacyPolicy.jtp");
+		out.println(home + "/Terms.jtp");
+		out.println(home + "/BackEnd.jtp");
+
+		for (int page = 1; page <= RootForums.PAGES; page++) {
+			out.println( home + RootForums.path(page) );
+		}
+	}
+
+}