1 /**************************************************************************
2 Copyright 2005 Webstersmalley
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 *************************************************************************/
16
17
18
19 package com.webstersmalley.picweb.online.web;
20
21 import java.io.IOException;
22 import java.util.HashMap;
23 import java.util.Map;
24
25 import javax.servlet.ServletException;
26 import javax.servlet.http.HttpServletRequest;
27 import javax.servlet.http.HttpServletResponse;
28
29 import org.apache.commons.logging.Log;
30 import org.apache.commons.logging.LogFactory;
31 import org.springframework.web.servlet.ModelAndView;
32 import org.springframework.web.servlet.mvc.Controller;
33
34 public class DisclaimerController implements Controller {
35 /*** Logger for this class and subclasses */
36 protected final Log logger = LogFactory.getLog(getClass());
37
38 public ModelAndView handleRequest(HttpServletRequest request,
39 HttpServletResponse response) throws ServletException, IOException {
40 logger.info("Forwarding to jsp now");
41 return new ModelAndView("Disclaimer");
42 }
43 }