comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:7ecd1a4ef557
1 package global.web;
2
3 import global.HtmlGlobalUtils;
4
5 import java.io.PrintWriter;
6 import java.io.IOException;
7 import javax.servlet.http.HttpServlet;
8 import javax.servlet.http.HttpServletRequest;
9 import javax.servlet.http.HttpServletResponse;
10
11
12 public final class Sitemap extends HttpServlet {
13 protected void service(HttpServletRequest request,HttpServletResponse response)
14 throws IOException
15 {
16 response.setContentType("text/plain");
17 response.setCharacterEncoding("UTF-8");
18 PrintWriter out = response.getWriter();
19
20 String home = "https://www.nabble.com";
21 out.println(home + "/");
22 out.println(home + "/ContactUs.jtp");
23 out.println(home + "/PoweredBy.jtp");
24 out.println(home + "/PrivacyPolicy.jtp");
25 out.println(home + "/Terms.jtp");
26 out.println(home + "/BackEnd.jtp");
27
28 for (int page = 1; page <= RootForums.PAGES; page++) {
29 out.println( home + RootForums.path(page) );
30 }
31 }
32
33 }