1
2
3
4
5
6
7
8 package com.buckosoft.PicMan.web;
9
10 import java.io.IOException;
11 import java.util.HashMap;
12 import java.util.Map;
13
14 import javax.servlet.ServletException;
15 import javax.servlet.http.HttpServletRequest;
16 import javax.servlet.http.HttpServletResponse;
17
18 import org.springframework.web.servlet.ModelAndView;
19
20 import com.buckosoft.BSAccount.web.BSAccountPageController;
21 import com.buckosoft.BSAccount.web.BSAccountUserWebSession;
22 import com.buckosoft.PicMan.business.PicManFacade;
23
24
25
26
27
28
29
30
31
32
33 public class MosaicAnalysePageController extends BSAccountPageController {
34 private PicManFacade pmf;
35
36
37
38
39 public void setPicMan(PicManFacade pmf) { this.pmf = pmf; }
40
41
42
43
44
45
46 public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
47 throws ServletException, IOException {
48
49 BSAccountUserWebSession userWebSession = this.bsAccountMan.getUserWebSession(request);
50 String s = request.getParameter("mid");
51 String now = (new java.util.Date()).toString();
52
53 Map<String, Object> myModel = new HashMap<String, Object>();
54 myModel.put("userWebSession", userWebSession);
55 myModel.put("now", now);
56 myModel.put("picMan", pmf);
57 myModel.put("mid", s);
58
59 return new ModelAndView("MosaicAnalysePage", "model", myModel);
60 }
61
62 }