30 |
30 |
31 import java.io.IOException; |
31 import java.io.IOException; |
32 import javax.servlet.RequestDispatcher; |
32 import javax.servlet.RequestDispatcher; |
33 import javax.servlet.ServletContext; |
33 import javax.servlet.ServletContext; |
34 import javax.servlet.ServletException; |
34 import javax.servlet.ServletException; |
|
35 import javax.servlet.annotation.WebServlet; |
35 import javax.servlet.http.HttpServlet; |
36 import javax.servlet.http.HttpServlet; |
36 import javax.servlet.http.HttpServletRequest; |
37 import javax.servlet.http.HttpServletRequest; |
37 import javax.servlet.http.HttpServletResponse; |
38 import javax.servlet.http.HttpServletResponse; |
38 |
39 |
|
40 /** |
|
41 * Entry point for the application. |
|
42 */ |
|
43 @WebServlet( |
|
44 name = "HomeServlet", |
|
45 urlPatterns = {"/", "/home"} |
|
46 ) |
39 public class HomeServlet extends HttpServlet { |
47 public class HomeServlet extends HttpServlet { |
40 |
48 |
41 private String jspPath(String filename) { |
49 private String jspPath(String filename) { |
42 return Constants.JSP_PATH_PREFIX + filename; |
50 return Constants.JSP_PATH_PREFIX + filename; |
43 } |
51 } |