KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > www > WStart


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.www;
15
16 import javax.servlet.*;
17 import javax.servlet.http.*;
18 import java.io.*;
19 import java.util.*;
20
21 import org.compiere.util.*;
22
23 /**
24  * Application Start Page
25  * <pre>
26  * Creates a Frame with
27  * - Command - cmd.html (invisible)
28  * - Menu - menu.html
29  * - Window = window.html
30  * </pre>
31  * @see webapps/compiere/index.html
32  * @author Jorg Janke
33  * @version $Id: WStart.java,v 1.1.1.1 2002/10/12 01:06:55 jjanke Exp $
34  */

35 public class WStart extends HttpServlet
36 {
37     /**
38      * Set UI directory to Servlet init param
39      */

40     public void init(ServletConfig config) throws ServletException
41     {
42         super.init(config);
43         if (!WEnv.initWeb(config))
44             throw new ServletException("WStart.init");
45     } // init
46

47     /**
48      * Process the HTTP Get request
49      */

50     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
51     {
52         WUtil.createLoginPage(request, response, this, null, null);
53     } // doGet
54

55
56     /**
57      * Process the HTTP Post request
58      */

59     public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
60     {
61         doGet(request, response);
62     } // doPost
63

64 } // Start
65
Popular Tags