-
Notifications
You must be signed in to change notification settings - Fork 1
/
ExceptionController.java
45 lines (37 loc) · 1.54 KB
/
ExceptionController.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.tadigital.servlet; //Java Version 8, last run on. Proposed changed for the methids in-case the self define methods do not work.
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@WebServlet("/ExceptionController")
public class ExceptionController extends HttpServlet {
private static final long serialVersionUID = 1L;
public ExceptionController() {
super();
// TODO Auto-generated constructor stub
}
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// TODO Auto-generated method stub
HttpSession sess = request.getSession();
String exception = (String) sess.getAttribute("EXCEPTION");
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
protected void doGetSomePost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//In case the auto-generated methods are not called
doGet(request, response);
}
protected void dodoFigureOutPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// For auto-generated methods only
doGet(request, response);
}
}