1
2
3
4
5
6
7
8
9
10
11 package psiprobe.controllers.servlets;
12
13 import jakarta.servlet.http.HttpServletRequest;
14 import jakarta.servlet.http.HttpServletResponse;
15
16 import org.springframework.beans.factory.annotation.Value;
17 import org.springframework.stereotype.Controller;
18 import org.springframework.web.bind.annotation.RequestMapping;
19 import org.springframework.web.servlet.ModelAndView;
20 import org.springframework.web.servlet.mvc.ParameterizableViewController;
21
22
23
24
25 @Controller
26 public class ServletsController extends ParameterizableViewController {
27
28 @RequestMapping(path = "/servlets.htm")
29 @Override
30 public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
31 throws Exception {
32 return super.handleRequest(request, response);
33 }
34
35 @Value("servlets")
36 @Override
37 public void setViewName(String viewName) {
38 super.setViewName(viewName);
39 }
40
41 }