KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > pageflow > DynamicSubappActionServlet


1 /*
2  * Copyright 2004 The Apache Software Foundation.
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  * $Header:$
17  */

18 package org.apache.beehive.netui.pageflow;
19
20 import org.apache.beehive.netui.util.logging.Logger;
21
22 import javax.servlet.ServletConfig JavaDoc;
23 import javax.servlet.ServletException JavaDoc;
24
25
26 /**
27  * ActionServlet that dynamically registers modules based on naming/location conventions for Struts
28  * configuration files that are generated by the Page Flow compiler. These files are located in
29  * /WEB-INF/.pageflow-struts-generated, and are named jpf-struts-config-<i>module-name</i>.xml.
30  * The user may specify additional ModuleConfigLocator classes in web.xml, using the
31  * "moduleConfigLocators" init-parameter; this allows the user to define other patterns for
32  * auto-registered Struts modules.
33  *
34  * @deprecated Use {@link PageFlowActionServlet} instead.
35  */

36 public class DynamicSubappActionServlet extends PageFlowActionServlet
37 {
38     private static final Logger _log = Logger.getInstance( DynamicSubappActionServlet.class );
39     
40     public void init() throws ServletException JavaDoc
41     {
42         super.init();
43         
44         if ( _log.isWarnEnabled() )
45         {
46             _log.warn( DynamicSubappActionServlet.class.getName() + " is registered as the action Servlet. "
47                        + "This class is deprecated; use " + PageFlowActionServlet.class.getName() + " instead." );
48         }
49     }
50 }
51
Popular Tags