1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.control;
16
17 import org.apache.struts.action.ActionServlet;
18
19 import javax.servlet.ServletException;
20 import javax.servlet.UnavailableException;
21 /**
22 * Controller servlet of Join application. This servlet is an extension
23 * of the Struts ActionServlet.
24 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
25 * @version $Revision: 1.1 $
26 */
27 public class JoinServlet extends ActionServlet{
28
29
30
31 /**
32 * Override of Struts ActionServlet init() method. Call super.init()
33 * and then retrieve and store into servlet context objects shared by
34 * the whole application.
35 * @throws ServletException if something goes wrong during initilization
36 */
37 public void init() throws ServletException{
38
39 super.init();
40
41 try{
42
43 }
44 catch (Exception e){
45 e.printStackTrace();
46 throw new UnavailableException("One or more services are unavailable");
47 }
48 }
49 }