KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > web > controller > UserGuideController


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is: OpenI Open Source
12  *
13  * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14  * Portions created by Loyalty Matrix, Inc. are
15  * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
16  *
17  * Contributor(s): ______________________________________.
18  *
19  ********************************************************************************/

20 package org.openi.web.controller;
21
22 import org.apache.log4j.Logger;
23 import org.springframework.web.servlet.ModelAndView;
24 import org.springframework.web.servlet.mvc.AbstractController;
25 import javax.servlet.http.HttpServletRequest JavaDoc;
26 import javax.servlet.http.HttpServletResponse JavaDoc;
27
28
29 /**
30  * @author Uddhab Pant <br>
31  * @version $Revision: 1.3 $ $Date: 2006/04/12 00:39:12 $ <br>
32  *
33  * Controller for user guide page.
34  *
35  */

36 public class UserGuideController extends AbstractController {
37     private static Logger logger = Logger.getLogger(UserGuideController.class);
38
39     /**
40      * Process the request and return a ModelAndView object which the DispatcherServlet will render.
41      *
42      * @param httpServletRequest HttpServletRequest
43      * @param httpServletResponse HttpServletResponse
44      * @return ModelAndView
45      * @throws Exception
46      */

47     protected ModelAndView handleRequestInternal(HttpServletRequest JavaDoc request,
48         HttpServletResponse JavaDoc response) throws Exception JavaDoc {
49         String JavaDoc view = "userGuideView";
50
51         try {
52             return new ModelAndView(view);
53         } catch (Exception JavaDoc e) {
54             logger.error("Exception:", e);
55             throw e;
56         }
57     }
58 }
59
Popular Tags